Info

Simple Programmer Podcast

The Simple Programmer Podcast is a short podcast that is a mix of career advice, philosophy and soft skills from successful author and software developer, John Sonmez. John is the founder of http://simpleprogrammer.com, one of the most popular software development blogs, and the author of the best-selling book, "Soft Skills: The Software Developer's Life Manual." (http://simpleprogrammer.com/softskills) Geared towards a programmer or software developer audience, but contains practical advice on: Career development Entrepreneurship Fitness Finance Productivity Personal development And more... That anyone can benefit from. Each episode is between 5 and 10 minutes long with at least 3 new episodes each week.
RSS Feed
Simple Programmer Podcast
2023
December
November
October
September
August
July
June
May
April
March
February
January


2022
December
November
October
September
August
July
June
May
April
March
February
January


2021
December
November
September
August
July
June
May
March
February
January


2020
December
November
October
September
August
July
June
May
April
March
February
January


2019
December
November
October
September
August
July
June
May
April
March
February
January


2018
December
January


2017
December
November
October
September
August
July
June
May
April
March
February
January


2016
December
November
October
September
August
July
June
May
April
March
February
January


2015
December
November
October
September
August
July
June
May


All Episodes
Archives
Now displaying: Page 1
Oct 25, 2016

Today we are going to talk about real programming.

Composition Vs. Inheritance. Have you ever heard about these terms? How should you choose between these two terms?

One of the advantages of Object-Oriented programming language is code reuse. There are two ways we can do code reuse either by implementation of inheritance (IS-A relationship), or object composition (HAS-A relationship). Although the compiler and Java virtual machine (JVM) will do a lot of work for you when you use inheritance, you can also get at the functionality of inheritance when you use composition.

As you all know, Inheritance is fundamental to object-oriented programming. A programming language may have objects and messages, but without inheritance, it is not object-oriented (merely “object-based”, but still polymorphic).

Composition is also fundamental to every language. Even if the language does not support composition (rare these days!), humans still think in terms of parts and components. It would be impossible to break down complex problems into modular solutions without composition.

So, how can you possibly know what is the best? How to choose between composition and inheritance? Listen to this episode and find out!

FREE COURSE - 7 Reasons You're Underpaid as a Software Developer http://vid.io/xoue
SUBSCRIBE TO MY CHANNEL: vid.io/xokz
SUPPORT MY YOUTUBE CHANNEL: vid.io/xokw
Visit: http://simpleprogrammer.com/

0 Comments
Adding comments is not available at this time.