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. << operator is ?

  • stream extraction operator
  • stream insertion operator
  • left shift operator
  • right shift operator

2. The derived class constructor

  • never passes any values to base class constructor
  • can pass arguments only to one base class constructor function
  • is responsible for passing the entire test of arguments needed by base class constructors
  • none of above

3. A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class

4. Constructors has return type void ?

  • True
  • False

5. The advantage of declaring a virtual function as pure is
?

  • programs runs faster
  • early binding can be achieved
  • you force any derived class to define its own implementation
  • you can avoid making the class an abstract class
Read more from - C++ Programming Questions Answers - Set 2
Post a comment