-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.java
More file actions
44 lines (31 loc) · 804 Bytes
/
Customer.java
File metadata and controls
44 lines (31 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.jim.learning;
public class Customer {
private String name;
private int creditLimit;
private String email;
public String getName() {
return name;
}
public int getCreditLimit() {
return creditLimit;
}
public String getEmail() {
return email;
}
public Customer() {
// TODO Auto-generated constructor stub
this("arthi", 200000, "arthi2919@gmail.com");
System.out.println("default constructor");
}
public Customer(String name, int creditLimit, String email) {
super();
this.name = name;
this.creditLimit = creditLimit;
this.email = email;
System.out.println("name " + name+" credit limit " +creditLimit);
}
public Customer(String name, String email)
{
this(name,9000,email);
}
}