A

Admin • 833K Points
Coach

Q. Which keyword is used to prevent a function from being overridden in derived classes?

  • (A) constant
  • (B) final
  • (C) static
  • (D) override
  • Correct Answer - Option(B)
  • Views: 28
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

The 'final' keyword prevents a function from being overridden in derived classes.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.