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 of the following type of class allows only one object of it to be created

  • Virtual class
  • Abstract class
  • Singleton class
  • Friend class

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. What is abstract class

  • Whose objects cant be created
  • Whose objects can be created
  • Depends on class
  • None of above

4. cout is declared in the _____ standard file within the std namespace

  • outstream
  • stdin
  • iostream
  • None of above

5. Reference is like a

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