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

What is thread safe in c#?

889


Differentiate between object pooling and connection pooling in c#?

992


how can one use hcl and c sharp together?

2096


Is c# used for frontend or backend?

1050


What is int32?

903


Can you inherit from multiple classes in c#?

874


What does get set mean in c#?

919


What is a method signature in c#?

927


Why we use get set in c#?

936


Why objects are stored in heap in c#?

949


Explain partial class in c#?

912


How assembly versioning in .NET prevent DLL Hell problem?

955


How do you declare a variable in c#?

962


What is type keyword in c#?

915


Why we use dll in c#?

960