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. 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

2. 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

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

  • private
  • public
  • protected
  • depends

4. Which is not C++ storage class

  • auto
  • register
  • static
  • iostream

5. How to define a destructor

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