V

Vikash Gupta • 33.56K Points
Instructor I

Q. Which of the following is the correct way to define a function with a final specifier in C++?

  • (A) void myFunction() final { }
  • (B) void myFunction() { }
  • (C) Both A and B
  • (D) None of the above
  • Correct Answer - Option(A)
  • Views: 60
  • Filed under category C++

Explanation by: Vikash Gupta
The correct way to define a function with a final specifier is 'void myFunction() final { }'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics