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
Why to use lock statement in c#?
Can you inherit from a sealed class?
What is verbatim string?
What is console read in c#?
What is Named parameter in C#?
What do you mean by delegates and explain different types of delegates?
Describe the types of comments in c#?
How do I trim a space in c#?
What is poco c#?
What is iqueryable and ienumerable in c#?
What is void in c#?
what is scope of a protected internal member variable of a c# class
Explain the Usage of web.config
What is orm in c#?
What are functions in c#?