Question Detail

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
Similar Questions :

1. Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private

2. Inheritance is transitive in nature.

  • True
  • False

3. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

4. What is data hiding ?

  • It is related with hiding internal object details
  • It is related with showing internal object details
  • It is related with datatypes
  • None of above

5. Which is more memory efficient ?

  • structure
  • union
  • both use same memory
  • depends on a programmer
Read more from - C++ Programming Questions Answers - Set 2