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
Do we get an error while executing the “finally” block in c#?
Describe the ways of cleaning up objects in c#.
What is namespace in oop?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
What do you mean by casting a data type?
What is iqueryable in linq?
What is the file extension for c#?
Are c# strings immutable?
Explain about generics in c#.net?
Is string a primitive data type in c#?
What is parameter c#?
How do I download a program to my desktop?
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?
What is dynamic dispatch?
What is difference between property and variable in c#?