Q. Which of the following is the correct way to define a function with an override specifier in C++?
β
Correct Answer: (A)
void myFunction() override { }
Explanation: The correct way to define a function with an override specifier is 'void myFunction() override { }'.