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