I have created a parent class with a getCost() method in order to return the cost of the actor. Each subclass has a different value so I need to be able to distinguish those, but I currently know that I am missing something because even if I change the initial private int cost to some other value it still returns 0. I would appreciate any help.
private int cost = 0;
public int getFoodCost()
{
return cost;
}
