To prevent a class from being inherited, we declare it as _______. 

  • final 
  • static 
  • private 
  • mutable
In C++, the "final" keyword is used to prevent a class from being inherited. This means that no other class can be derived from a class declared as "final".
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *