Wats the diff between sealed class and private class in
inheritance

Answer Posted / guest

the diffenence between the TWO is that:

In private Class: We can create a constructor and therefore
we can create an instance of that class.

But
In Sealed class we can not create a constructor of that
class, so no instance of that class is possible.


Private Constructor of a Private Class = Sealed Class.

Is This Answer Correct ?    4 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data binding c#?

531


What is the size of a decimal?

617


What is difference between ilist and list in c#?

484


Define constructors

552


How long does a loop recorder procedure take?

521






State two different types of access modifiers.

562


Does hashset allow duplicates c#?

518


Explain clr in brief.

552


Which is faster list or dictionary in c#?

571


What is func c#?

502


What is scaffolding in c#?

478


What are circular references? How garbage collection deals with circular references.

535


What is method in c#?

475


Why we use extension method in c#?

510


How to get the sum of last 3 items in a list using lambda expressions?

508