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
How do I move from one form to another in c#?
Is c# different than c++?
What are different types of Delegates in C#?
what is a enumeration in c#
How can you read 3rd line from a text file?
Explain Direct CAST vs CType ?
What do you know about WM_CHAR message?
How many variables do you need?
What is session variable in c#?
What is difference between constants and read-only?
Why ref is used in c#?
Why do we need to call CG.SupressFinalize?
How can I check the type of an object at runtime?
Difference between a sub and a function in c#.
How to declares a two-dimensional array in C#?