A->B->C (EXTENDS)
How the constructors are called when we created an object of C
Answer Posted / 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 |
Post New Answer View All Answers
What is main thread in c#?
What is the name of c# compiler?
Define multicast c# delegate?
what is IFormatable
Which types of inheritances does c# support?
What is the use of table aliases?
Is it possible to have a static indexer in c#?
What is value c#?
What is the difference between a function and a method?
What are extender provider components? Explain how to use an extender provider in the project.
What is entity framework c#?
What is the difference between xml documentation tag?
Explain what are the steps for creating clr trigger?
Suppose you have already existing application with Visual Studio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. With this example how can you approach migrating this application to .NET?
Why do we use abstraction in c#?