⟩ Explain about Protected Inheritance?
Public and Protected members are derived as protected members.
Public and Protected members are derived as protected members.
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
The Inline functions may not work ______. 1. If function contain static variables 2. If function contain global and register variables 3. If function returning value consists looping construct(i.e. for, while) 4. If inline functions are recursive 5. If function contains const value a. Only 1,4,5 b. Only 2,3,5 c. Only 1,3,4 d. All of these