Java polymorphism error? [closed]

// c.move();

This should be either in a method/constructor body.

public static void main(string[] args) {
Cat c = new Cat();
 c.move();
}

Leave a Comment