Question:
Order of constructor and destructor call in case of multiple inheritance?
Answer:
Source: CoolInterview.com
constructors top-down, destructors bottom-up.
eg:
in parent's constructor
in child's constructor
in grandchild's constructor
in grandchild's destructor
in child's destructor
in parent's destructor Source: CoolInterview.com
Answered by: karthick Raja P | Date: 12/22/2009
| Contact karthick Raja P
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|