Inheritance and composition should actually be about programming of programming. This means that code is written once and duplication of semantically and logically same code is avoided by automating the process of generating the whole source code from parts. 766 more words