Question: A constructor is a special kind of member function. It is automatically called when an object of that class is declared True False A class
A constructor is a special kind of member function. It is automatically called when an object of that class is declared True False
A class can have friends that are functions as well as friend classes.
True False
Inline functions are always more efficent than noninline functions. True False
A function can return an array.
True False
Overloaded operator <<, when used as an output, returns an ostream& to allow chains of output statements, and similarly the overloaded operator >> returns an istream&
True False
The functions or data members declared in the private: section of a class can be accessed only in the definition those functions declared in that class. Note that friend functions are also declared (but not defined) in the class to which they are friends, so they also have access to private as well as public members.
True False
Using const is only useful in passing parameters to functions.
True False
Overloading a binary operator as a stand-alone function requires two arguments.
True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
