Interview Question

Software Engineer Interview Maynard, MA

What is the difference between inheritance and delegation?

Answer

Interview Answer

1 Answer

0

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.