public class Customer extends Object
| Constructor and Description |
|---|
Customer(int salary)
Create customer with salary.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSalary() |
CustomerType |
getType() |
void |
setSalary(int salary) |
void |
setType(CustomerType type) |
String |
toString() |
public Customer(int salary)
salary - public int getSalary()
public CustomerType getType()
public void setSalary(int salary)
salary - the salary to setpublic void setType(CustomerType type)
type - the type to setpublic String toString()
toString in class ObjectObject.toString()Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.