Question Detail

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
Similar Questions :

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

  • private
  • public
  • protected
  • depends

2. Inline functions are invoked at

  • Run time
  • Compile time
  • Debug time
  • None of above

3. Declaring pointer more than one can cause

  • Trap
  • abort a program
  • error
  • none of above

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 class has only one unique value for all the objects of class

  • this
  • friend
  • static
  • none of above
Read more from - C++ Programming Questions Answers - Chapter 1