Monster Worldwide Interview Question: What is the difference betwee... | Glassdoor

Interview Question

Software Engineer Interview Maynard, MA

What is the difference between inheritance and delegation?


Interview Answer

1 Answer


With inheritance, all of the members and methods of the parent or base class are automatically available to the child or derived class; they are inherited.

Delegation forwards certain method calls to another object (the delegate).

Interview Candidate on Jul 13, 2010

Add Answers or Comments

To comment on this, Sign In or Sign Up.