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 we use dll in c#?
What is session variable in c#?
Why objects are stored in heap in c#?
Can you access a hidden base class method in the derived class?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
What is an xsd file?
What is extended class in c#?
What is the difference between do and while loop?
What is the advantage of generics in c#?
What is int32 maxvalue?
How big is an int in c#?
What are the different approaches of passing parameters to a method?
How many constructor can a class have?
What is assembly c#?
How do you mark a method obsolete?