HOW CAN YOU PREVENT YOUR CLASS TO BE INHERITED FURTHER?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
C# 
C#
 1044  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    How can you prevent your class to be inherited further?

    You can prevent a class from being inherited further by defining it with the sealed keyword.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!