260 Composition Vs. Inheritance: How To Choose? - Simple Programmer Podcast

260 Composition Vs. Inheritance: How To Choose? - Simple Programmer Podcast

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/

Tämä jakso on lisätty Podme-palveluun avoimen RSS-syötteen kautta eikä se ole Podmen omaa tuotantoa. Siksi jakso saattaa sisältää mainontaa.

Jaksot(1156)

1157  I Don't Have Time To Learn The Skills For A New Job... What Should I Do? - Simple Programmer Podcast

1157 I Don't Have Time To Learn The Skills For A New Job... What Should I Do? - Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

13 Joulu 20234min

1156 Advice for Developers Working in Low-Earning Countries - Simple Programmer Podcast

1156 Advice for Developers Working in Low-Earning Countries - Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

11 Joulu 20239min

1155 I'm A Developer And I'm Not Good At Design, What Should I Do? - Simple Programmer Podcast

1155 I'm A Developer And I'm Not Good At Design, What Should I Do? - Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

8 Joulu 20235min

1154 I'm A Programmer Stuck Working For A Company I HATE, Help!!! - Simple Programmer Podcast

1154 I'm A Programmer Stuck Working For A Company I HATE, Help!!! - Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

6 Joulu 20237min

1153 Web Development Visual Tools: Solid Or Cheating? - Simple Programmer Podcast

1153 Web Development Visual Tools: Solid Or Cheating? - Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

4 Joulu 20238min

1152 The Complete Software Developer's Career Guide: MY NEW BOOK! - Simple Programmer Podcast

1152 The Complete Software Developer's Career Guide: MY NEW BOOK! - Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

1 Joulu 20237min

1151 Working For Cheap Or Learning Technologies? - Simple Programmer Podcast

1151 Working For Cheap Or Learning Technologies? - Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

29 Marras 20237min

1150 What Can You Do To Survive A Recession As A Developer?- Simple Programmer Podcast

1150 What Can You Do To Survive A Recession As A Developer?- Simple Programmer Podcast

Simple Programmer is now BACK with a brand new YouTube Channel- SUBSCRIBE HERE: https://simpleprogrammer.com/subscribespyt

27 Marras 20237min

Suosittua kategoriassa Liike-elämä ja talous

sijotuskasti
psykopodiaa-podcast
mimmit-sijoittaa
rss-rahapodi
rss-oivalluksia-rahasta-elamasta
asuntoasiaa-paivakirjat
oppimisen-psykologia
hyva-paha-johtaminen
pomojen-suusta
pari-sanaa-lastensuojelusta
rss-rahamania
rss-myynnilla-on-asiaa-kert-kenner
herrasmieshakkerit
ostan-asuntoja-podcast
rss-laakispodi
rss-kaupan-tila
rss-sisalto-kuntoon
rss-set-for-life-sijoita-ja-vaurastu
rss-paikoillenne-valmiit-laakikseen
rss-ainin-sekatoimisto