Click here to Skip to main content
15,896,475 members
Articles / All Topics

Composition VS Inheritance

Rate me:
Please Sign up or sign in to vote.
4.42/5 (12 votes)
9 May 2010CPOL5 min read 117.4K   6  
This article will try and compare composition and inheritance with the aim to provide their uses so you can make a logical choice of what to apply and when.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student Pandora Games
United Kingdom United Kingdom
The University Of Plymouth is where I study the fine art of computer science when I can be compelled to learn…

It’s not that I am a bad student, I just cant help it if side projects interest me more!

In my spare time I find that guitar is the best way to wind down, or bring down the hammer if learning songs from guitar gods such as PAUL GILBERT!

Game development has always interested me because its a way of expressing ideas in a simulated environment (otherwise the earth would surely be doomed).

I hope to become a professional software engineer one day as I believe that there is no point in working unless you enjoy it with a passion!

Comments and Discussions