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
What is a console device?
Is c# good for web development?
What is difference between web and window application?
What is the difference between static and constant variables?
What is the max value of int32 in c#?
What is polymorphism and its types in c#?
What is a web service in c#?
Is c# front end or back end?
What is difference between property and variable in c#?
What is generic in c#?
Is c++ or c# better?
How would you describe encapsulation in c#?
code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.
How to move to a state-related codebase?
What is the use of ienumerable in c#?