The following code is an example of the correct use of the virtual keyword (assume Student is a subclass of Person ) : ____.
A) virtual public Person
B) class Student : public Person (virtual)
C) virtual class Student : public Person
D) class Student : virtual public Person
Correct Answer:
Verified
Q20: Inheritance is said to use the _
Q21: Why are functions sometime overridden in derived
Q22: Multiple inheritance is _ required.
A) always
B) never
C)
Q23: When a derived class object is destroyed,
Q24: When a child class function overrides a
Q26: A(n) _ class is also called the
Q27: Many of the constructor complications that occur
Q28: When you instantiate a class object that
Q29: Overriding a base class member function with
Q30: _ in C++ means you can create
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