Question: What is a virtual function in C + + ? A function that cannot be accessed from anywhere in the program. A function that can

What is a virtual function in C++?
A function that cannot be accessed from anywhere in the program.
A function that can be overridden by a derived class.
A function that can be accessed from anywhere in the program.
A function that cannot be overridden by a derived class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!