CSC/ECE 517 Summer 2008/wiki2 8 jb: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
===Inheritance=== | ===Inheritance=== | ||
[http://en.wikipedia.org/wiki/Inheritance_(computer_science) Inheritance] | [http://en.wikipedia.org/wiki/Inheritance_(computer_science) Inheritance], one of the fundamental tenets of [http://en.wikipedia.org/wiki/Object-oriented_programming object oriented programming], is the ability to create hierarchies of that are related to each other via the [http://en.wikipedia.org/wiki/Is-a is-a] relationship. | ||
===Delegation=== | ===Delegation=== |
Revision as of 18:32, 20 June 2008
This wiki will explore the age old debate on inheritance vs. delegation, showing the strengths and weakness of each approach, and where each approach is preferred.
Background
Inheritance
Inheritance, one of the fundamental tenets of object oriented programming, is the ability to create hierarchies of that are related to each other via the is-a relationship.
Delegation
Delegation is a