Question Detail

Which of the following cannot be inherited from the base class

  • Constructor
  • Friend
  • Both A and B cannot be inherited
  • Both A and B can be inherited
Similar Questions :

1. Which type of variables can be referred from anywhere in the c++ code

  • All variables
  • Local variables
  • Universal variables
  • Global variables

2. Which arithmetic operation can be done in pointer

  • Multiplication
  • Division
  • Addition
  • None of above

3. What is inheritance

  • Inheritance allows one class to reuse the state and behavior of another class.
  • It deals with dangling pointers
  • It deals with void pointers
  • It is type of class declaration

4. Can #define accept parameters

  • Yes
  • No

5. Reference is like a

  • Pointer
  • Structure
  • Array
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1