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 a abstract class have a constructor?

931


Is stringbuilder faster than string concatenation c#?

961


What are actions in c#?

922


What are the generation of Garbage Collection in C# .NET ?

1001


Why do we need delegates?

920


What is multidimensional array in c#?

1024


How to rotate an Image in C#?

1167


Define assert() method? How does it work?

1197


Describe an abstract class?

1037


What is the difference between dll and lib?

1028


When do we generally use destructors to release resources?

980


What is the difference between struct and class in c#?

1377


How objects are stored in memory?

1084


What is global namespace in c#?

1012


How can I make sure my c# classes will interoperate with other .net languages?

1047