Class Salesperson
java.lang.Object
Salesperson
public class Salesperson
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myName
private java.lang.String myName
myCars
private int myCars
myTrucks
private int myTrucks
Salesperson
public Salesperson()
Salesperson
public Salesperson(java.lang.String x,
int y,
int z)
Salesperson
public Salesperson(Salesperson arg)
getName
public java.lang.String getName()
getCars
public int getCars()
getTrucks
public int getTrucks()
setName
public void setName(java.lang.String x)
setCars
public void setCars(int x)
setTrucks
public void setTrucks(int x)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object