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. How we define our name for constants

  • #constant
  • #define
  • #define_constant
  • #constant_define

2. 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

3. Reference is like a

  • Pointer
  • Structure
  • Array
  • None of above

4. Which is not a correct variable type

  • float
  • int
  • double
  • real

5. All members of class have which access to its members

  • private
  • public
  • protected
  • depends
Read more from - C++ Programming Questions Answers - Chapter 1