3 classes,
Vehicle
SteeredVehicle
Zombie
Inheritance goes like this
Zombie ---->SteeredVehicle----->Vehicle
The SteeredVehicle has the real meat in methods and properties. In another class(let’s say ZombieHandler) I try to run one of the functions of the zombie object(that is located in the steeredvehicle class) so I say
zombie.runSteeredVehicleMethod();
Nothing happens.(runSteeredVehicleMethod is public just to let you know)
I’m trying to make it so that I can have more than just one type of steeredvehicle.
Thanks