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...

About Virtual functions and their use ?

Answer Posted / belson gnana pradeep

Virtual methods those can be overridden and replaced by sub classes.
When working with virtual methods keep in mind datatype of
an object is used to determine the implementation of
the method to call, rather than the type of the variable
that refers to an object.

In C#, a base class must provide the "virtual" modifier for
any virtual method, and derived classes must provide the
"override" modifier for any overriden method inherited from
a base class.

In VB.NET, a base class must provide the "Overridable"
modifier for any virtual method, and derived classes may
provide the optional "Overrides" modifier for any overriden
method inherited from a base class

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are scriptable objects?

975


What does namespace mean?

1000


Explain the access modifiers in c#?

989


What is the difference between add and addrange in c#?

1048


Can hashtable have duplicate keys?

958


What is static classes?

1002


Which of these string definitions will prevent escaping on backslashes in c#?

1049


Can dictionary have duplicate keys c#?

924


What is a satellite assembly in c#?

1044


Describe an abstract class?

1036


How do I do a case-insensitive string comparison?

1148


Is constructor a static method?

1037


If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

1022


What is the purpose of reserved word using in c#?

982


What is an escape sequence? Name some string escape sequences in c#.

976