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 virtual 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
}



Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two method..

Answer / payal

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

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How?s the DLL Hell problem solved in .NET?

1 Answers   Visual Soft,


What is use of abstract class in c#?

0 Answers  


Is it possible to have different access modifiers on the get/set methods of a property in c#?

0 Answers  


What is throw in c#?

0 Answers  


Name the connections does microsoft sql server support?

0 Answers  


What is assembly version series sequence?

0 Answers  


Is array reference type / value type?

15 Answers   Accenture,


What is an iqueryable in c#?

0 Answers  


What is class method?

0 Answers  


Explain About Virtual functions and their use.

0 Answers  


What are object oriented concepts?

6 Answers   Adea, Microsoft,


How do you concatenate in c#?

0 Answers  


Categories