public abstract class Problem
{
public abstract List<Action> GetPossibleActions(State currentState);
}
Here both Action and State classes are also Abstract Classes.
In the child class of Problem, I am implementing that abstract method with using children of Action and State. Now it gives me error because I didnt use the same Abstract classes for return type and argument.
public class PizzaProblem : Problem
{
public List<PizzaAction> GetPossibleActions(PizzaState currentState)
{
......
}
}