Nokia

  www.nokia.com
Work in HR? Unlock Free Profile

Nokia Software Engineer Interview Question

I interviewed in London, England (UK) and was asked:
"When you have multiple classes in C++ in a hierarchy, what was the way in which the ctors and dtors are called."
Add Tags [?]
Answer

Part of a Software Engineer Interview Review - one of 195 Nokia Interview Reviews

Answers & Comments

0
of 1
vote
It's a FAQ; just reverse order for deletion.
- Interview Candidate on Jan 24, 2012
0
of 0
votes
When you have multiple classes in C++ in a hierarchy, what was the way in which the ctors and dtors are called
- Humayun Ch on Jul 6, 2012
0
of 0
votes
depend on if it's virtual inheritance, if not any shared base ctors will be called twice.
But generally from left to right base class in multiple inheritance. Then derived ctors.
Destructor reverse the order...
- g on Nov 3, 2012

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.