A virtual function is declared by placing the keyword in front of the return type in the base class's function declaration.
A) protected
B) virtual
C) private
D) public
E) None of the above
Correct Answer:
Verified
Q4: In C++, polymorphism is based on the
Q5: A pure virtual function
A)must be accompanied by
Q6: When the compiler binds a call to
Q7: The term means the ability to take
Q8: To indicate that a member function of
Q10: Polymorphism is when in a class hierarchy
Q11: When more than one class is derived
Q12: functions are dynamically bound by the compiler.
A)Constructor
B)Static
C)Destructor
D)Virtual
E)None
Q14: When a virtual member function of a
Q20: Pointers to a base class may be
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