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
Which debugging tools you can use in the .NET ssSDK?
What is a di class?
Which is faster list or dictionary in c#?
What is a method signature c#?
How long does it take to learn c# for unity?
Write the difference between TypeOf and GetType?
Where value types are stored in c#?
explain the three services model commonly know as a three-tier application.
Why we use extension methods in c#?
What are controls in c#?
What is an argument in c#?
What is Satellite Assemblies ?
What does dbml mean in texting?
How many types of namespaces available in version4?
What is the data provider name to connect to access database?