CSC407 OOP Example

plan.dom
Class Customer

java.lang.Object
  |
  +--plan.dom.Customer

public class Customer
extends java.lang.Object

Represents a customer of the software company.


Field Summary
private  java.lang.String name
           
 
Constructor Summary
(package private) Customer(java.lang.String name)
          Create a new customer with the given name.
 
Method Summary
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
Constructor Detail

Customer

Customer(java.lang.String name)
Create a new customer with the given name. Package access, as all customer creation should be done through Company.

Parameters:
name - the (unique) name of the customer
Method Detail

getName

public java.lang.String getName()

CSC407 OOP Example