Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Mobile{
- private double simnumber;
- private String customerName;
- private double balance;
- private double callRate;
- public Mobile(String customerName,double balance,double callRate){
- this.customerName=customerName;
- this.balance=balance;
- this.callRate=callRate;
- }
- private Mobile( double simnumber)
- {
- this.simnumber=simnumber;
- }
- public void call(Mobile m1){
- System.out.println(m1);
- }
- public void display()
- {
- System.out.println(simnumber+customerName+balance+callRate);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement