/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package pointtest; /** * * @author jcmtiernan */ public class TinyRobot extends SmallRobot{ private String name; public TinyRobot(String name, int robotIDNumber) { super(robotIDNumber); this.name = name; } public TinyRobot(String name, int robotIDNumber, Point loc, int size, double cost) { super(robotIDNumber, loc, size, cost); this.name = name; } public TinyRobot(String name) { this.name = name; } @Override public String toString() { return String.format(super.toString()+"\nName: "+name); } }