Can you allow class to be inherited, but prevent the method
from being over-ridden?
Answer Posted / anubhav gupta
We can use shadowing concept.
For shadowing use New keyword in derived class method.
Through this we can prevent the method from being over
ridden.
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
Why we use oops in c#?
What is callback in c#?
How to declares a two-dimensional array in C#?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
How does c# generics and c++ templates compare?
Can c# inherit multiple classes?
What are the Types of configuration files and their differences
What is encapsulation in csharp?
What is generic types in c#?
What is the namespace for datatable in c#?
What is difference between var dynamic and object in c#?
Why do we use namespace in c#?
What does == mean in c sharp?
Why do we need static class in c#?
What is hashset c#?