Q. Which of the following is the correct way to define a virtual function in C++?
β
Correct Answer: (A)
virtual void myFunction();
Explanation: The correct way to define a virtual function is 'virtual void myFunction();'.