What are Sealed Classes in C#?

Answer Posted / senthil kumar

when a class defined as sealed its not possible to inherit
its class and properties to the inherited class.Its also
applicable to the class properties.Even class defined as
public its banned to inherit the class.

Is This Answer Correct ?    126 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is global asax in c#?

525


How to use nullable types in .net?

569


What is the role of the datareader class in ado.net connections?

513


Will the following code compile?

559


In which order the destructor is called for an inherited class?

529






What is Garbage Collection in .Net?

610


What are static and dynamic variables?

649


Is php better than c#?

497


Why do we overload constructors?

496


How do I declare a pure virtual function in c#?

595


Explain what is the smallest unit of execution in .net?

480


How to open a new form on button click in Windows forms?

528


Define a class and an object?

560


What are the advantages of using partial classes?

533


When was .net linq added?

519