CSC/ECE 517 Fall 2007/wiki2 10 ab: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
==What is Inheritance== | ==What is Inheritance== | ||
Inheritance in the concept of Object Oriented Programming is the process by which one object can inherit or acquire the properties of other objects. With the use of inheritance each object can only define the properties which are unique to itself and derive qualities or common attributes from other objects. To cite this as an example, consider this page [http://www.eecs.utoledo.edu/~ledgard/oop/page2h.html] | Inheritance in the concept of Object Oriented Programming is the process by which one object can inherit or acquire the properties of other objects. With the use of inheritance each object can only define the properties which are unique to itself and derive qualities or common attributes from other objects. To cite this as an example, consider this page [http://www.eecs.utoledo.edu/~ledgard/oop/page2h.html "Real life Inheritance Examples"] | ||
Revision as of 00:33, 23 October 2007
Inheritance vs Delegation : Inheritance vs. delegation. Follow the debate on inheritance vs. delegation. Construct (or, better, cite) examples that show cases where inheritance is better, and cases where delegation is better. Attempt to characterize the situations in which you should employ one or the other.
What is Inheritance
Inheritance in the concept of Object Oriented Programming is the process by which one object can inherit or acquire the properties of other objects. With the use of inheritance each object can only define the properties which are unique to itself and derive qualities or common attributes from other objects. To cite this as an example, consider this page "Real life Inheritance Examples"
What is Delegation
Delegation is