Java Tuorial - OOP Language Basics Primitive Data Types Convert Units Conversion Tables
Updated : April 14, 2010 9:07 AM
public class Location * Location represents a square on a sidewalk that will or will not contain a drunk. { private data : boolean isDrunk
public Location() * Creates a location that does not contain a drunk public void makeDrunk() * Puts a drunk in this current location. public String toString() * Returns a capital D if the location contains * a drunk. Returns a dash otherwise. }//end Location
Ala All Als Be Da D'Ar K Co K Cu Ki Lo My Sa Sc Vi Not Listed
Last Name :
Email :
Select one of the following that describes when and why you are filling out this form: This assignment is in on time. This assignment is in on time, being resubmitted due to a failed submission (I have a copy of the original submission). This assignment is a corrected submission for half the missed credit. This assignment is one day late and will lose 15%. This assignment is more than one day late (half credit at best). This assignment is late because of an EXCUSED absence. This assignment is being resubmitted at the request of the teacher.
Location class code
Updated: Monday, January 3, 2011 2:11 PM