A recursive function may return a value or not cannot take any parameters must r
ID: 3845728 • Letter: A
Question
A recursive function
may return a value or not
cannot take any parameters
must return a value if it takes parameters
cannot return a value
When calling a function on an object pointed to by a pointer variable, we use operator
::
.
->
=
Array elements:
may be a mix of primitive and object types
may not be of a struct type
may be of a struct or a class type
may only be of a primitive type
If you do not overload any operators for a class you create
operator ++ exists and has the default behavior
operator < exists and has the default behavior
operator = exists and has the default behavior
operator + exists and has the default behavior
To assign values to a structure variable, you use the
the = operator
the :: operator
the <- operator
the -> operator
A derived class pointer can point to
a derived class object only
a base or a derived class object
a derived class object or objects of its derived classes
a base class object only
In the derived class definition, you list from the base class
all the member functions
only the member functions that are overriden
only the public member functions
all the data members and member functions
Using a data member of type Engine in Car class is an example of
encapsulation
IS-A relationship
inheritance
composition
may return a value or not
cannot take any parameters
Explanation / Answer
1. must return a value if it takes parameters
2. ->
3.may be a mix of primitive and object types
4.operator = exists and has the default behavior
5. the -> operator
6.a derived class object only
7.only the member functions that are overriden
8. composition
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.