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
Which is faster abstract class or interface in c#?
What is a custom attribute?
How many bytes is a long c#?
How does one compare strings in c#?
Is learning c# hard?
What are the types in c#?
How do I count the length of a string in c#?
What is console based application?
Is a c# interface the same as a c++ abstract class?
How does dll hell solve in .net?
Is c# or c++ better for games?
How can you reference current thread of the method ?
if you do have a stack overflow profile.what is your ranking?
How to use exception handling in stored procedure?
What is virtual class in C#?