A->B->C (EXTENDS)
How the constructors are called when we created an object of C
Answers were Sorted based on User's Feedback
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 |
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 |
how can your software identify which version of dot net framework install in client pc and install framework accordingly
Why data types are important?
What is difference between an reference type and value type in C#?
What is the purpose of namespace?
What is the namespcae generally given to the webpage of the .NET Framework ?
What is jit? What are the different types of jit?
What is window application in c#?
What is a singleton unity?
Can you inherit multiple interfaces?
Does c# support parameterized properties?
What is ilasm.exe used for?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?