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
What is thread safe in c#?
Differentiate between object pooling and connection pooling in c#?
how can one use hcl and c sharp together?
Is c# used for frontend or backend?
What is int32?
Can you inherit from multiple classes in c#?
What does get set mean in c#?
What is a method signature in c#?
Why we use get set in c#?
Why objects are stored in heap in c#?
Explain partial class in c#?
How assembly versioning in .NET prevent DLL Hell problem?
How do you declare a variable in c#?
What is type keyword in c#?
Why we use dll in c#?