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
How many kinds of elements an array can have?
What type of data type conversion happens when the compiler encounters the following code?
What is the difference between package and interface?
Who is a accessibility modifier “protected internal†available to ?
What is keywords in c#?
Explain dataset.acceptchanges method in .net?
Can enum be null c#?
In which order the constructor is called for an inherited class?
Is linkedhashset synchronized?
Is string a primitive data type in c#?
Why do we use dataset in c#?
what are pointer types in c#
What is a generic class?
What are the 2 kinds of data type conversions in c#?
What is session and cookies in c#?