Intermediate Object-Oriented Programming Concepts
Q70 / 100

What is a "virtual method" (in languages like C++ or C#)?

Correct! Well done.

Incorrect.

The correct answer is B) A method that can be overridden in a derived class and is resolved via dynamic dispatch at runtime

B

Correct Answer

A method that can be overridden in a derived class and is resolved via dynamic dispatch at runtime

Explanation

Marking a method virtual signals that derived classes may override it, and calls through a base reference will use the derived implementation.

Progress
70/100