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. Inheritance is transitive in nature.

  • True
  • False

2. Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above

3. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution

4. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

5. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above
Read more from - C++ Programming Questions Answers - Set 2