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
Is there an equivalent of exit() for quitting a c# .net application?
What is signature c#?
What are the advantages of properties in c#?
What is the difference between Static, Const and read only?
What is event and delegates in c#?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
What is use of private class in c#?
What are partial classes and use of partial classes?
Are c# tuples immutable?
What is a thread? What is multithreading?
Is c# scripting language?
If dll and exe files are same it means you can deploy both the files in gac?
Why is c# a good programming language?
Can the accessibility of a type member be greater than the accessibility of its containing type?
Is there hashmap in c#?