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

Which is faster abstract class or interface in c#?

927


What is a custom attribute?

847


How many bytes is a long c#?

868


How does one compare strings in c#?

954


Is learning c# hard?

875


What are the types in c#?

851


How do I count the length of a string in c#?

915


What is console based application?

910


Is a c# interface the same as a c++ abstract class?

925


How does dll hell solve in .net?

918


Is c# or c++ better for games?

800


How can you reference current thread of the method ?

908


if you do have a stack overflow profile.what is your ranking?

1835


How to use exception handling in stored procedure?

975


What is virtual class in C#?

942