April 2017
Beginner to intermediate
394 pages
9h 16m
English
The idea that Players, Enemies, Missiles, and Medics should all derive from one base object is very common to programmers new to object-oriented programming. It makes a lot of sense on paper that if you have a Raider and a SuperRaider, one should inherit from the other. I believe this comes from how inheritance is taught. When you are first learning about inheritance, you will almost always see a picture similar to this:

Many introductory programming courses are so focused on the mechanics of inheritance that they forget to tell you ...
Read now
Unlock full access