Question: Suppose we have 3 classes, class one, class two and class three. Class two is derived from class one and class three is derived from

 Suppose we have 3 classes, class one, class two and class

Suppose we have 3 classes, class one, class two and class three. Class two is derived from class one and class three is derived from class two. We now instantiate an instance of class three. What is the firing order of the constructors? Three, then two, then one One, then two then three Since one is the base class only its constructor executes None of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!