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
Explain publishers and subscribers in events.
Why objects are stored in heap in c#?
what is inheritance and an example in vb.net and c# of when you might use it?
Write a sample code to write the contents to text file in c#?
What's the difference between an integer and int?
Can int be null c#?
What is data bind in c#?
Illustrate the process of code compilation in c#?
What is extended class in c#?
What is hierarchical inheritance in c#?
What is difference between out and ref in c#?
What is object pool in .net?
How do I port "synchronized" functions from visual j++ to c#?
In a single .NET DLL how many classes it contains?
How do I calculate relative time?