⟩ Explain what is Private Inheritance?
The Public and protected members of Base class become private members of the derived class.
The Public and protected members of Base class become private members of the derived class.
Described the advantages of using macro and inline functions?
Explain static member functions?
Explain inline function?
Define Inline Function?
Friend function does not have this pointer associated with it. a. True b. False
In any ways, Non-member function cannot have access to private data of the class. a. True b. False
Function can be declared as friend maximum only in two classes. a. True b. False
If program uses Inline Function, then the function is expanded inline at ___________. a. Compile time b. Run time c. Both a and b d. None of these
Which of followings is/are not false about friend function? 1. It can be called / invoked with class object 2. It has objects as arguments 3. It can have built-in types as arguments 4. It must declared only in public part of a class 5. It does not have this pointer as an argument a. Only 2,4 b. Only 1,2,5 c. Only 2,3,5 d. All of these
Default return the type of functions in CPP is a. void b. long c. char d. int