How can you prevent classes to be inherited?

Answer Posted / dhara

we can prevent class to be inherite by making sealed class
by using keyword sealed.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does void do in c#?

515


What do you mean by expression tree?

445


Explain the various types of classes used in c#?

497


What is difference between override and new in c#?

508


What is multithreading with .net?

529






What is property in c#?

536


Explain manifest in c#.

520


What are the steps for creating clr trigger

563


What is view model in c#?

460


What are the different types of comments in c#?

491


What does executescalar return in c#?

454


What is the main purpose of delegates in c#?

507


Does c# support multilevel inheritance?

483


What are the basics of c#?

551


What is private constructor c#?

493