download Mastguru Android App

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

  • this
  • friend
  • static
  • none of above

2. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}

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

  • ->
  • ::
  • .
  • >>

4. Meaning of STL

  • Standard Tree Library
  • Standard Term Library
  • Standard Template Library
  • None of above

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