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

write the Syntax for Function or Method Overriding?

Answer Posted / pritam kumar

class parent
{
public virtual void print()
{
Console.Writeline ("method from parent class");
}
}
class child:parent
{
public override void print()
{
Console.Writeline("method from base class ");
}
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we inherit a class with private constructor in c#?

1010


What is the difference between arraylist and list in c#?

859


What is void in c#?

895


What is Implementation inheritance and interface inheritance?

947


Is array ienumerable c#?

834


Does c# support properties of array types?

895


Can I define a type that is an alias of another type (like typedef in c++)?

955


Does constructor return any value in c#?

911


What is the use of iqueryable in c#?

849


What are value types in c#?

859


Why do we need nullable types in c#?

1124


What's difference between constants and static readonly?

1110


What is arraylist class in c#?

1032


what are the different ways a method can be overloaded?

895


What Is A Multicast Delegate?

1034