1.Customer classs
class Customer{
private int customerId;
private long telephoneNo;
public void setCustomerId(int id){
cutomerId=id;
}
public void setTelephoneNo(long teleNo){
telephoneNo=teleNo;
}
public int getCustomerId(){
return customerId;
}
public long getTelephoneNo(){
return telephoneNo;
}
}
2.
class Retail{
public static void main(String args[]){
Customer custObi = new Customer();
custObi.setCustomerId(1001);
custObi.setTelephoneNo(920186131L);
System.out.println("Customer Id:"+custObj.getCustomerId());
System.out.println("Telephone No:"+custObj.getTelephoneNo());
}
}