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 gac? How to put assembly in gac?

557


What is distribute by in hive?

545


How to parse a date time string?

539


What is stringreader in c#?

492


What are the Types of optimization and name a few and how do u do?

530






What is c-sharp (c#)?

538


Can var be null c#?

483


How C# 4.0 supports dynamic programming language?

575


Is array ienumerable c#?

471


What is the use of ienumerable?

459


Why do we need interfaces in c#?

489


Why to use “using” in c#?

561


What is difference between continue and break in c#?

483


What is different about switch statements in c#?

492


What is task parallel library?

513