True/False
This is legal code.
class B
{
public:
// ...
virtual void f()= 0;
};
int main(){ B b1,b2;/*...*/ }
Correct Answer:
Verified
Related Questions
Q1: A pointer to objects of a derived
Q3: Downcasting causes the slicing problem.
Q4: A derived class destructor always invokes the
Q5: It is legal to have all member
Q6: Upcasting causes no problems
Q7: Virtual functions allow old code to call
Q8: The virtual function mechanism binds the "right"
Q9: It is useful to define a class
Q10: Virtual functions are implemented with a table
Q11: The virtual property is not inherited.
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