ans:
B) BottomUp
Login to rate this answer.
Ans: A--- TopDown
Always a parent class constructor is executed before child class' constructor does .. when u instantiate a child/derived class.

1 User has rated as useful.
Login to rate this answer.
Sean Paul
Answered On : Apr 1st, 2006
Bottom Up, The question is how are they called, not order in which they are they executed. i.e. first the derived class' constructer will be called which in turn will call the parent class' constructor

1 User has rated as useful.
Login to rate this answer.
Ashish
Answered On : Feb 5th, 2007
It will always be topdown: class a { public a() { Console.WriteLine("Class a"); Console.ReadLine(); } } class b:a { public b() { Console.WriteLine("Class b"); Console.ReadLine(); } } class c : b { public c() { Console.WriteLine("Class c"); Console.ReadLine(); } static void Main(string[] args) { c obj = new c(); } }It will give the result:Class aClass bClass C

1 User has rated as useful.
Login to rate this answer.
An object of derived type is constructed from the base class to the derived class by calling the constructors for each class in order.
Rational:Each class's constructor can use base class members in the class constructor.
Login to rate this answer.
Bottom up.
A parent class has no reference to the child class, it's the other way around. The code calls the child class, which then calls the parent class, and so on up. Then the constructors are executed top down.
Login to rate this answer.
Order of call: From child to parent
Order of execution: From parent to child
Login to rate this answer.