This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Inheritance and composition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Inheritance and composition" Watch "Inheritance and composition" New topic
Author

Inheritance and composition

Hari babu
Ranch Hand

Joined: Jun 25, 2001
Posts: 208
Hi all,
What are the advantages and disadvantages of inheritance and composition ?
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
http://www.google.com/search?q=inheritance+versus+composition


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Inheritance and composition
 
Similar Threads
Inheritance or composition?
Composition versus Inheritance
A refactoring question.
Composition and Inheritance