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

Define sealed classes in c#?

692


how background thread access to ui control?

775


Is c and c# the same?

669


What is use of singleton class in c#?

677


What are the fundamental oop concepts?

679


Why do we use public static void main in c#?

661


Can we create multiple constructors?

673


What is the difference between abstract and virtual?

649


What is a trace and asset? Explain some differences?

924


Can I do things in il that I can't do in c#?

699


Explain circular reference in c#?

728


List out the differences between array and arraylist in c#?

699


Is stringbuilder thread safe c#?

632


What all details the assembly manifest will contain?

621


Is array a collection c#?

687