Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Is string mutable in c#?

876


Why should I use interface in c#?

974


Explain About ADO and its objects

1010


Are c# strings immutable?

899


What is private class in c#?

943


List out the differences between array and arraylist in c#?

987


Which is better interface or abstract class in c#?

813


What is data set in c#?

934


Describe the ways of cleaning up objects in c#.

909


Is it possible to have different access modifiers on the get/set methods of a property?

1032


what is IComparable

997


What is yield break in c#?

911


How do I do implement a trace and assert?

990


Explain the clr triggers?

953


Where static variables are stored?

949