-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBank.java
More file actions
87 lines (79 loc) · 1.85 KB
/
Bank.java
File metadata and controls
87 lines (79 loc) · 1.85 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// class Bank{
// int adhar_no;
// int name;
// int contact_no;
// int city;
// void cus(int adhar_no){
// adhar_no=873424379479;
// name="sumit rajak";
// contact_no=89289948;
// city="bhopal";
// }
// void cus1 extand cus(int adhar_no){
// adhar_no=87342;
// name="pawan verma";
// contact_no=892894329;
// city="bhopal";
// }
// void cus1 extand cus(int adhar_no){
// adhar_no=87342;
// name="pawan verma";
// contact_no=892894329;
// city="jaipur";
// }
// void cus2 extand cus1(int adhar_no){
// adhar_no=8734255;
// name="raj verma";
// contact_no=892894329;
// city="jaipur";
// }
// public static void main(String[] args) {
// Acount obj = new Acount();
// obj.cus();
// obj.cus1();
// obj.cus2();
// }
// }
class Bank {
long adhar_no;
String name;
long contact_no;
String city;
}
// First Customer
class Customer1 extends Bank {
Customer1() {
adhar_no = 873424379479L;
name = "Sumit Rajak";
contact_no = 89289948L;
city = "Bhopal";
}
}
// Second Customer
class Customer2 extends Bank {
Customer2() {
adhar_no = 87342L;
name = "Pawan Verma";
contact_no = 892894329L;
city = "Bhopal";
}
}
// Third Customer
class Customer3 extends Bank {
Customer3() {
adhar_no = 8734255L;
name = "Raj Verma";
contact_no = 892894329L;
city = "Jaipur";
}
}
public class Account {
public static void main(String[] args) {
Customer1 c1 = new Customer1();
Customer2 c2 = new Customer2();
Customer3 c3 = new Customer3();
c1.displayCustomer();
c2.displayCustomer();
c3.displayCustomer();
}
}