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

Trace the O/p for a program on inheritance and
Polymorphism. 3 classes A,B,C
A with two methods
public virtual SomeMethodA
public virtual SomemoreMethodA

B:A
overide SomeMethodA

C:B new Method SomeMethodA
override SomeMoreMethodA

main method
{
b new instance of B
b.SomeMethodA
b.SomeMoreMethodA

b1 new instance of C
b1.SomeMethodA
b1.SomeMoreMethodA

}

Answer Posted / vibz

Call to B's SomeMethodA
Call to A's SomeMoreMethodA
Call to B's SomeMethodA
Call to C's SomeMoreMethodA

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is IEquatable

1048


If you donot specify an access modifier for a method, what is the default access modifier?

1093


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

1040


How to handle exceptions that are raised in a component?

1145


What is using in c#?

927


Can we write class inside a class in c#?

1013


What framework is used for performance testing/load testing?

2012


Are c# references the same as c++ references?

1044


Can we store different data types in arraylist in c#?

961


How to force my .net app to run as administrator on windows 7?

1012


Define multicast delegate in c#?

967


Is xml tags are case sensitive?

932


Write one code example for compile time binding and one for run time binding? What is early/late binding?

1065


What does it mean to override a method?

1065


What are mutable and immutable types in c#?

1003