download Mastguru Android App

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. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

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

  • True
  • False

3. Queues are based on ?

  • LIFO
  • FIFO
  • LILO
  • FILO

4. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

5. Which among following is not a valid visibility mode in c++ program ?

  • Private
  • Public
  • Protected
  • Limited
Read more from - C++ Programming Questions Answers - Set 2
Post a comment