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

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

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

3. Default constructor has how many arguments

  • 1
  • 2
  • 3
  • 0

4. Dereference operator is also called as

  • pointer
  • Reference operator
  • Offset operator
  • Deoffset operator

5. 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
Read more from - C++ Programming Questions Answers - Chapter 1