Which of the following is a virtual method?
Click to view the answer
A.
In Java, only non-static, non-final, and non-private methods are considered virtual and capable of being overridden in a subclass.
Option A is the correct answer.