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