Can you allow class to be inherited, but prevent the method
from being over-ridden?

Answer Posted / nkm

Class can be MustInherit and method can be NotInheritable
(VB.NET Concept)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between abstract and abstraction?

657


Describe a Struct ?

761


Does c# support a variable number of arguments?

784


What is void in c#?

745


What is tuple in c#?

713


Name the property of the textbox which cannot be changed at runtime?

720


How do you create dlls in .NET

795


How many constructors can a class have in c#?

688


What is difference between value and reference types in C#.NET

754


How to transpose multi-dimensional array?

789


How do you prevent a method from being overridden in c#?

663


What is hierarchical inheritance in c#?

687


What is an ienumerable in c#?

724


List the difference between interface and abstract class?

655


Will the following code compile?

755