Summary: Inheritance or Composition for iOS Development Inheritance has been one of the most popular characteristics of OOP since it was introduced. But it seems to not to be recommended as good practice in programming these days. It’s easy to find many...

Inheritance vs. Composition - Better Programming

Source: brian - 1970-01-01T00:00:00Z

0 UP DOWN

Which should you use?

brian

Better Programming

Published in

6 min read

May 10, 2020

--

Photo by Domenico Loia on Unsplash

Inheritance has been one of the most popular characteristics of OOP since it was introduced. But it seems not to be recommended as good practice in programming these days. It’s easy to find many discussions and articles on “Composition over Inheritance” as a precaution for engineers. Some modern programming languages like Go don’t even allow the use of inheritance but only the…