download Mastguru Android App

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. C++ programs must contain

  • start()
  • system()
  • main()
  • program()

2. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}

3. Which operator is used for comparing two variables

  • :=
  • =
  • =:
  • ==

4. Which is boolean operator for logical and

  • &
  • ||
  • &|
  • &&

5. Stack unwinding deals with

  • deals with polymorphism
  • deals with inheritance
  • deals with exception handing
  • deals with classes
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment