Wats the diff between sealed class and private class in
inheritance

Answer Posted / robert j

We can not put private,protected, internal protected over
the classes.. it is public by default...

The main purpose of putting "sealed" for the classes is to
prevent the other classes to refer it.It's functionality
can not be shared..

The important point is , "sealed" class can inherit from
any other non-sealed classes.. But no other classes can
inherit from a sealed class..

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sqlconnection in c#?

499


Explain how can I get around scope problems in a try/catch?

486


Explain circular reference in c#?

548


Why data types are important in c#?

482


What is executenonquery c#?

471






What is data type c#?

498


What are handlers in c#?

498


What is an enumerator c#?

518


what is IDisposal interface

677


What is primitive types in c#?

466


What is a console operator?

492


Explain synchronous and asynchronous operations?

534


Is c# an open source?

497


Difference between value and reference type. What are value types and reference types?

508


Can we inherit static class in c#?

486