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

Why do we need singleton class in c#?

951


Is c# pass by value?

891


Explain about accessibility modifier 'protected internal'?

999


Can we inherit private class in c#?

940


How big is an int in c#?

977


Name which controls do not have events?

1041


What is the use of getcommandlineargs() method in c#.net?

972


Is clr a compiler?

862


write a program to find the biggest palindrome in the given string

962


Explain About web methods and its various attributes

979


What does the parsefloat function do?

909


What is a variable in c#?

901


What do multicast delegates mean?

996


what is the syntax to inherit from a class in c#?

1008


List the difference between interface and abstract class?

866