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
Define interface class in c#?
Can you explicitly call a destructor?
What does firstordefault mean in c#?
What does immutable mean in c#?
Explain the difference between access specifier and access modifier in c#?
What is 8 bit signed integer?
What is window application in c#?
Can an exception be thrown from a catch block?
Can a dictionary have duplicate keys c#?
What is event delegate in c#?
What is assembly version series sequence?
Is it possible to have different access modifiers on the get/set methods of a property?
What is Web.config?
Is constructor a static method?
Explain dataadapter.update method in .net?