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


Please Help Members By Posting Answers For Below Questions

What does exclamation mark mean c#?

530


Why delegates are safe in c#?

447


What is Garbage Collection in .Net?

600


What is the difference between and xml documentation tag?

515


What is hashtable in c# net with example?

465






Why are local variables stored in stack?

546


Is it not possible to store a boolean value as a variable?

441


What is the difference between delegates and superdelegates?

458


Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?

523


Int map to which .net types?

534


What is binary search tree in data structure?

471


List some of the classes used by system.data namespace?

441


What is an assembly qualified name

512


What is the difference between a variable and a literal?

528


how to implement a web service in .net

464