package KinematicSimulator; import java.awt.Color; /** * This class creates Ball objects. * * @author Helena */ public class BallFactory extends EntityFactory { public Entity createEntity(int x, int y, int r, Color c) { Ball b = new Ball(x, y, 0, 0, r, c); return b; } }