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
Is string mutable in c#?
Why should I use interface in c#?
Explain About ADO and its objects
Are c# strings immutable?
What is private class in c#?
List out the differences between array and arraylist in c#?
Which is better interface or abstract class in c#?
What is data set in c#?
Describe the ways of cleaning up objects in c#.
Is it possible to have different access modifiers on the get/set methods of a property?
what is IComparable
What is yield break in c#?
How do I do implement a trace and assert?
Explain the clr triggers?
Where static variables are stored?