Write a class having a public pure virtual method.You need not put any other members in the class.
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q18: It is OK to assign between objects
Q19: Destructors are automatically virtual.
Q20: The base class destructor must be virtual.
Q21: Write a program where the destructors should
Q22: Write a short program that shows how
Q24: What is the error?
class B
{
public:
virtual void f();
};
virtual
Q25: Why do you not get an undefined
Q26: In C++,a virtual destructor is invoked whenever
Q27: If the override specifier is added to
Q28: Suppose each of the base class and
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents