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


A->B->C (EXTENDS)
How the constructors are called when we created an object of C

Answers were Sorted based on User's Feedback



A->B->C (EXTENDS) How the constructors are called when we created an object of C..

Answer / ramkishore mateti

When you intantiate Class C then the Class C Constructor
calls its base class(class b) constructor, Class b calls
its baseclass constructor i.e Class a, Class a calls its
base class constructor System.object.System.object
intiallizes class fields, then it comes to Class a it
intializes thier class fields and it comes to Class b after
intilalizion at last the Class C constructor intializes
their class fields.
Hence the Hierarchy of class Constructors are called are
a , b, c

Is This Answer Correct ?    11 Yes 1 No

A->B->C (EXTENDS) How the constructors are called when we created an object of C..

Answer / kiran

constructor are called in this order
a,b,c

Is This Answer Correct ?    7 Yes 2 No

A->B->C (EXTENDS) How the constructors are called when we created an object of C..

Answer / priya

the constructor of class A is called first then Class B and
at the end class C.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is the following code legal?

0 Answers  


how can i return string by vilating duplicates(inpyt like asdfsda but output should be 2a2d2sf and 2a,2d,2s,f)

2 Answers   Microsoft,


Is and as in c#?

0 Answers  


What are the 2 kinds of data type conversions in c#?

0 Answers  


What?s a satellite assembly?

3 Answers   Visual Soft,


Difference between ByVal and ByRef?

5 Answers   Microsoft,


How to raise an selection changed event associated with listbox in datagridview control with a sample example?Here the listbox is a child control associated with datagridview control.

3 Answers  


What is the use of system.environment class in c#.net?

0 Answers  


what is the real use of interface in c#,other than that multiple inheritance is not possible

7 Answers  


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

0 Answers  


what is c# command?

0 Answers  


Why we use anonymous methods in c#?

0 Answers  


Categories