download Mastguru Android App

Question Detail

When one class inherits from the base class, then the original class is called ?

  • derived class
  • base class
  • sub class
  • basic class
Similar Questions :

1. The function used to define the task assigned to an operator is ?

  • Virtual function
  • Static function
  • Operator function
  • Friend function

2. What is class in c++ ?

  • When you define a class, you define a blueprint for a data type.
  • When you define a class, you make get more funtionality.
  • When you define a class, you define the logic.
  • When you define a class, you make debugging.

3. What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above

4. What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.

5. The private data members of a class are accessible ?

  • Directly to objects of that class
  • To any function defined outside a class
  • Only to the member functions
  • Only using keyword static
Read more from - C++ Programming Questions Answers - Set 2
Post a comment