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


can it possible to acees the virthual method using the
override method object?
plz give me the example

Answers were Sorted based on User's Feedback



can it possible to acees the virthual method using the override method object? plz give me the ex..

Answer / aspdev556

class BaseClass
{
public virtual Method(){}
}

class DerivedClass
{
public override Method()
{base.Method();}
}

Is This Answer Correct ?    3 Yes 0 No

can it possible to acees the virthual method using the override method object? plz give me the ex..

Answer / javed khan

public class zzz
{
public static void Main()
{
yyy x = new xxx();
x.test();

}
}
class yyy
{
public virtual void test()
{
System.Console.WriteLine("base calss.");
}
}
class xxx : yyy
{
public override void test()
{

System.Console.WriteLine("derived calss.");
base.test();
}
}

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What is ienumerable and iqueryable?

0 Answers  


How is exception handling implemented in c#?

0 Answers  


Why we use dll in c#?

0 Answers  


Is static class thread safe in c#?

0 Answers  


What is the implicit name and type of the parameter that gets passed into the class set method?

0 Answers  


How can I produce an assembly?

0 Answers  


update data in an xml file which resides in solution itself, using silverlight 4.0

0 Answers  


What is the do while loop code?

0 Answers  


what is meant inheritance. can you exaplain what kind inhertance ussed in your project

1 Answers  


Is ram a heap?

0 Answers  


What is extension method in c# and how to use them?

0 Answers  


Are private class-level variables inherited?

2 Answers  


Categories