Inheritance on C# related Questions and Answers


Question :   How can you prevent inheritance from a class in C#.NET ?
1. Declare the class as shadows.
2. Declare the class as overloads.
3. Declare the class as sealed.
4. Declare the class as suppress.
5. Declare the class as override.
Answer :   3 - Declare the class as sealed.  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter