/** * A usable, but inconvenient version of the Pet class * The problem is that private instance variables are annoying. * In this version no extending class can even change their values * * Also this in incompletely commented * * @author gtowell * */ public class Petv1 extends Object { private String iD; private String name; public String sound() { return "silence"; } public String getId() { return iD; } public String getName() { return name; } }