0
imagine a video game that has several objects in its game world. all objects would implement a 'GameObject' interface or something so the game knows how to handle them. the game also has enemys so it has an abstract class 'Enemy' every enemy no matter how diffetent they look and attack inherit from this class which tells them to define basic stuff like attack damage, speed, height, and so on
2nd Feb 2018, 9:26 AM
Jeremy
Jeremy - avatar