download Mastguru Android App

Question Detail

An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual
Similar Questions :

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

2. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )

3. Even if we define a function in a class, then also we need to declare it first.

  • True
  • False

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

5. Can we define array of classes in c++ ?

  • Yes
  • No
Read more from - C++ Programming Questions Answers - Set 2
Post a comment