Can you prevent your class from being inherited and becoming
a base class for some other classes?
Answer Posted / pank
Make your class constructor as Private then it will restrict from being inherit as well as instantiate.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is c# slower than java?
Does the variables of a private class-level inherited?
What is join in c#?
Can constructor be overloaded in c#?
What is delegates and events?
Explain the serialization in .net
Explain the use of virtual, sealed, override, and abstract method?
Tell me the difference between call by value and call by reference.
Where are value types stored in c#?
What is the diff between System.String and System.Text.StringBuilder classes?
Explain briefly the difference between value type and reference type?
What is a thread c#?
What is remote data?
Different between method overriding and method overloading?
Is int a class in c#?