File tree 1 file changed +150
-0
lines changed
1 file changed +150
-0
lines changed Original file line number Diff line number Diff line change
1
+ import java .util .Scanner ;
2
+
3
+ class MyClass
4
+ {
5
+ public static void
6
+ main (String [ ] args )
7
+ {
8
+ class player {
9
+ int playerNum ;
10
+ String Fname ;
11
+ String Lname ;
12
+ int position ;
13
+ int age ;
14
+ double height ;
15
+ double armSpan ;
16
+ double salary ;
17
+
18
+ public player (
19
+ int playerNum ,
20
+ String Fname ,
21
+ String Lname ,
22
+ int position ;
23
+ int age ;
24
+ double height ;
25
+ double armSpan ;
26
+ double salary ;)
27
+ {
28
+ this .playerNum = playerNum ;
29
+ this .Fname = Fname ;
30
+ this .Lname = Lname ;
31
+ this .position = position ;
32
+ this .age = age ;
33
+ this .height =height ;
34
+ this .armSpan =armSpan ;
35
+ this .salary = salary ;
36
+ }
37
+
38
+
39
+ }
40
+ void printPlayer (){
41
+ System .out .println (
42
+ "player's Number:" + playNum ;
43
+ "Name: " + Fname + Lname ;
44
+ "Position: " + position ;
45
+ "Age:" + age ;
46
+ "Height:" + height ;
47
+ "Arm Span:" + armSpan ;
48
+ "Salary: " + salary ;
49
+ );}
50
+ class coach {
51
+ int coachNum ;
52
+ String Fname ;
53
+ String Lname ;
54
+ int level ;
55
+ int age ;
56
+ boolean male ;
57
+ double salary ;
58
+
59
+ public coach (
60
+ int coachNum ,
61
+ String Fname ,
62
+ String Lname ,
63
+ int level ;
64
+ int age ;
65
+ boolean male ;
66
+ double salary ;)
67
+ {
68
+ this .coachNum = coachNum ;
69
+ this .Fname = Fname ;
70
+ this .Lname = Lname ;
71
+ this .level = level ;
72
+ this .age = age ;
73
+ this .male =male ;
74
+ this .salary = salary ;
75
+ }
76
+ }
77
+ class fan {
78
+ int fanNum ;
79
+ String Fname ;
80
+ String Lname ;
81
+ int age ;
82
+ boolean male ;
83
+ int ticketType ;
84
+
85
+ public fan (
86
+ int fanNum ;
87
+ String Fname ;
88
+ String Lname ;
89
+ int age ;
90
+ boolean male ;
91
+ int ticketType ;)
92
+ {
93
+ this .fanNum = fanNum ;
94
+ this .Fname = Fname ;
95
+ this .Lname = Lname ;
96
+ this .age = age ;
97
+ this .male =male ;
98
+ this .ticketType = ticketType ;
99
+ }
100
+ }
101
+ class manager {
102
+ int staffNum ;
103
+ String Fname ;
104
+ String Lname ;
105
+ int position ;
106
+ int age ;
107
+ double salary ;
108
+
109
+ public manager (
110
+ int staffNum ,
111
+ String Fname ,
112
+ String Lname ,
113
+ int position ;
114
+ int age ;
115
+ double salary ;)
116
+ {
117
+ this .staffNum = staffNum ;
118
+ this .Fname = Fname ;
119
+ this .Lname = Lname ;
120
+ this .position = position ;
121
+ this .age = age ;
122
+ this .salary = salary ;
123
+ }
124
+ }
125
+ class supportStaff {
126
+ int staffNum ;
127
+ String Fname ;
128
+ String Lname ;
129
+ string position ;
130
+ int age ;
131
+ double salary ;
132
+
133
+ public supportStaff (
134
+ int staffNum ,
135
+ String Fname ,
136
+ String Lname ,
137
+ string position ;
138
+ int age ;
139
+ double salary ;)
140
+ {
141
+ this .staffNum = staffNum ;
142
+ this .Fname = Fname ;
143
+ this .Lname = Lname ;
144
+ this .position = position ;
145
+ this .age = age ;
146
+ this .salary = salary ;
147
+ }
148
+ }
149
+ }
150
+ }
You can’t perform that action at this time.
0 commit comments