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

How do I develop c# apps?

909


How garbage collection deals with circular references.

857


What is access specifier in c#?

1056


What is difference between iqueryable and ienumerable in c#?

868


What do you mean by saying a "class is a reference type"?

910


What is asp net in c#?

948


What do you mean by the delegate in c#?

906


What is the difference between const and readonly in c#.net?

940


What is the and operator in c#?

969


What do you mean by directing?

979


What is generic types in c#?

931


What are Indexers in C#?

1052


What is garbage collector and where should you use in .NET?

983


Explain how do I get deterministic finalization in c#?

927


Are structs value types or reference types?

1054