/** A class to represent at Dog. */ public class Dog { String name; String sound; /** Constructor. * @param _name the name of the animal. * @param _sound what sound the animal makes. */ Dog( String _name, String _sound ) { this.name = _name; this.sound = _sound; } /** When the animal wants to bug a human, it says... * @return The sound of the animal, bugging its owner. */ public String speak() { return this.sound + ", " + this.sound + "."; } }