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. Which is boolean operator for logical and

  • &
  • ||
  • &|
  • &&

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

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

3. How we define our name for constants

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

4. How to define a destructor

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

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

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