is it possible to inherit a class but methods declared in
the class should not be inheritable i possible how?
Answer Posted / aakanchha
Yes..!!
We can define a method as "private" ,so the method will not
be inherited.
and by 'sealed' we can prevent overriding but can not
prevent inheriting .
| Is This Answer Correct ? | 17 Yes | 1 No |
Post New Answer View All Answers
Give an example of a ctype.
What is the difference between “constant” and “readonly” variables in c#?
Can we override interface method?
Explain the process of Serialization?
What is jit? What are the different types of jit?
What are collection classes?
Is null or empty in c#?
Is void a class?
Is it possible to have a static indexer in c#?
List down the access modifiers available in c#?
What are the two kinds of properties in c#.
What is a partial class in c#?
What is default value of decimal c#?
What is delegates in c#?
what is full assembly reference