How can we main a Class as base class,i.e not inherited
further?{please Dont tell using Sealed class,any other way}
Answer Posted / jay
final is an identifier valid in java, c# has sealed.
while its true that marking base CTOR as private makes
deriving from that class impossible, you SHOULD use sealed
for that purpose.
Reason is that "sealed" allows for some neat compiler
optimization.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Can struct be static in c#?
How do I create a delegate/multicastdelegate?
Explain briefly the difference between value type and reference type?
What is disconnected data architecture in c#?
Can main method be final?
What is extension method in c# and how to use them?
How can I access the registry from c# code?
What is dataset c#?
What is before string in c#?
What are the methods in c#?
What is property c#?
What does type safe mean in c#?
Explain get and set accessor properties?
What does return do in unity?
Write a C# program to find the Factorial of n