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 does exclamation mark mean c#?
Why delegates are safe in c#?
What is Garbage Collection in .Net?
What is the difference between xml documentation tag?
What is hashtable in c# net with example?
Why are local variables stored in stack?
Is it not possible to store a boolean value as a variable?
What is the difference between delegates and superdelegates?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
Int map to which .net types?
What is binary search tree in data structure?
List some of the classes used by system.data namespace?
What is an assembly qualified name
What is the difference between a variable and a literal?
how to implement a web service in .net