-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoanSbi.java
77 lines (64 loc) · 1.42 KB
/
LoanSbi.java
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package tHaleyadhu;
public class LoanSbi {
private int loanNo;
private int accountNo;
private int customerNo;
private float loanAmount;
private int loanDuration;
private float intrest;
private static int loanCounter;
static {
loanCounter=10;
}
public static int getloanCounter() {
return loanCounter;
}
public LoanSbi(){loanCounter++;}
public int getloanNo() {
return loanNo;
}
public void setloanNo(int loanNo) {
this.loanNo=loanNo;
}
public int getaccountNo() {
return accountNo;
}
public void setaccountNo(int accountNo) {
this.accountNo=accountNo;
}
public int getcustomerNo() {
return customerNo;
}
public void setcustomerNo(int customerNo) {
this.customerNo=customerNo;
}
public float getloanAmount() {
return loanAmount;
}
public void setloanAmount(float loanAmount) {
this.loanAmount=loanAmount;
}
public int getloanDuration() {
return loanDuration;
}
public void setloanDuration(int loanDuration) {
this.loanDuration=loanDuration;
}
public float getintrest() {
return intrest;
}
public void setintrest(float intrest) {
this.intrest=intrest;
}
public LoanSbi(int accountNo,int customerNo,float loanAmount,int loanDuration,float intrest) {
this.accountNo=accountNo;
this.customerNo=customerNo;
this.loanAmount=loanAmount;
this.loanDuration=loanDuration;
this.intrest=intrest;
}
public static void main(String[] args) {
LoanSbi c1= new LoanSbi(23,23,23,2,3);
System.out.println(getloanCounter());
}
}