Question: Which one of the following is the correct way to declare a pure virtual function?

Options

A : virtual void Display(void){0};

B : virtual void Display = 0;

C : virtual void Display(void) = 0;

D : void Display(void) = 0;

Click to view Correct Answer

Previous || Next

OOPS Concepts - General Questions more questions

Which of the following are available only in the class....

Which of the following is not a type of inheritance?

Which of the following operators cannot be overloaded?

In which of the following a virtual call is resolved....

Which of the following statements regarding inline functions is correct?

Which of the following header file includes definition of cin....

Which of the following keyword is used to overload an....

What will happen if a class is not having any....

Which inheritance type is used in the class given below?....

Which one of the following is correct about the statements....

Constructors and Destructors - General Questions more Online Exam Quiz

Windows 2000 Server - Part 1

Windows NT - Part 1

Constructors and Destructors - General Questions

Functions - General Questions

Objects and Classes - General Questions

References - General Questions

Arrays - General Questions

Complicated Declarations - General Questions