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 polymorphism

  • Ability to take more than one form
  • Ability to destroy destructor
  • Ability to create constructor
  • None of above

2. If value has not type, then the pointer pointing to this value will be known as

  • Empty pointer
  • Null pointer
  • Void pointer
  • None of above

3. Which is not a correct variable type

  • float
  • int
  • double
  • real

4. ios::ate is used for

  • Set the initial position at the start of the file
  • Set the last position at the end of the file
  • Set the initial position at the end of the file
  • Set the last position at the start of the file

5. Which operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>
Read more from - C++ Programming Questions Answers - Chapter 1