<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* A Cubicle in some office.  Row and column numbers start at 1 */
// The only "service" that this class provides is to collect related 
// data in a Cubicle object.  (Notice that there're no methods other 
// than the most basic ones: constructor, getters, toString.)  In such 
// a case, one may choose to make the fields public.
class Cubicle {

  public String name;  //name of person who uses the Cubicle
  public int row;      //row number of the Cubicle
  public int column;   //column number of the Cubicle
  
  /* Constructor: Person n uses this Cubicle which is in row r, column c */
  public Cubicle(String n, int r, int c) {
    name= n;
    row= r;
    column= c;
  }
  
  /* = a String containing the data values of this Cubicle */
  public String toString() {
    return  name + "'s cubicle is at row " + row + ", column " + column ;
  }
}</pre></body></html>