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

how to sort an array in c#

1068


Which is faster dictionary or list?

979


What is the base class of all classes in c#?

1037


How does one compare strings in c#?

1066


Why we use get and set property in c#?

994


Explain the different ways a method can be overloaded?

925


When should I throw an exception?

1051


What is the difference between inheritance and abstract class?

944


What is the benefit of interface in c#?

1009


What are c# types?

1135


What do you know about WM_CHAR message?

1035


Can an array be null c#?

991


Is string mutable in c#?

924


Explain the importance and use of each, version, culture and publickeytoken for an assembly.

994


What is difference between float and decimal?

1028