If I want to override a method 1 of class A and in class b
then how do you declare ?
Answer Posted / avaneesh bajoria
If using VB.NET as the code behind, you use must override
instead of virtual and overrides in the derived classs
public class parent
public mustoverride sub walk()
messagebox.show("Parent")
end sub
end class
public class child
inherits parend
public overrides sub walk()
messagebox.show("Child")
end sub
end class
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Does c# have functions?
What are Uses of CLR
How do you escape in c#?
How do I create a multi language, multi file assembly?
What is CASPOL?
Can a class be private in c#?
What is expression c#?
Why should I use interface in c#?
What is static void main in c#?
What is the difference between add and addrange in c#?
Explain inheritance in c#?
Illustrate serialization?
Difference between a sub and a function in c#.
How does return work in c#?
What is multicast delegate in c# ?