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
Why do we need singleton class in c#?
Is c# pass by value?
Explain about accessibility modifier 'protected internal'?
Can we inherit private class in c#?
How big is an int in c#?
Name which controls do not have events?
What is the use of getcommandlineargs() method in c#.net?
Is clr a compiler?
write a program to find the biggest palindrome in the given string
Explain About web methods and its various attributes
What does the parsefloat function do?
What is a variable in c#?
What do multicast delegates mean?
what is the syntax to inherit from a class in c#?
List the difference between interface and abstract class?