Other News

Editorials

Should I Use Composition or Inheritance?

Should I Use Composition or Inheritance? This is a topic with almost as much tension as database normalization. Many people lean toward composition over inheritance. Here is an example of the difference. Class Car extends Engine { var doors; } This design assumes you can’t have a car without an engine, inheriting from the engine class. Another way to handle […]