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. What is getline() in c++

  • getline() extract the delimeter newline character from the input stream
  • getline() does not extract the delimeter newline character from the input stream
  • None of above

2. How we mark the end of c++ statement

  • ;
  • :
  • >>
  • <<

3. Dereference operator is also called as

  • pointer
  • Reference operator
  • Offset operator
  • Deoffset operator

4. what is a class in c++

  • Class in a collection of objects
  • Class has noting to do with object
  • It just have declaration of few variables
  • None of above

5. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment