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 derived class in c#?
Can an interface extend a class c#?
What namespace is list in c#?
What is meant by clr?
Why do we need properties in c#?
What do you use c# for?
Why is c# good for games?
Why linq is having select clause at the end?
Explain about Threading Types.
What is the main usage of keyword “virtual†? How does it work for a method or property?
What is the solution if you need to manipulate sets of items?
How many types of constructors are available in c#?
How do I calculate relative time?
Can we inherit partial class in c#?
What's the implicit name of the parameter that gets passed into the set method/property of a class?