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