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 download a program to my desktop?
What is the difference between delegates and events in c#?
Explain the access modifiers in c#?
List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.
Define a class and an object?
What is namespace in oop?
Why generics are used in c#?
how background thread access to ui control?
What is local function?
What is array and arraylist?
If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.
What is generic delegate in c#?
What is oledbconnection c#?
How to reduce image resolution in C#?
How do I start a program in c#?