-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameMain.java
More file actions
31 lines (21 loc) · 1.13 KB
/
Copy pathGameMain.java
File metadata and controls
31 lines (21 loc) · 1.13 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
public class GameMain {
public static void main(String[] args) {
HockeyPlayer hp = new HockeyPlayer("Cyber", 18, "STE", 99);
/* Cricketer c = new Cricketer("Joker", 17, "GodLike", 10); */
Batsman bman = new Batsman("Naoe", 16, "Nova", 88, 999, 90.8f);
Bowler b = new Bowler("Carlo", 20, "TapaTap", 99, 60, 50.0);
System.out.println("...............PLAYER DETAILS...........");
System.out.println("________________________________________________________________________________________________\n");
System.out.println(hp);
System.out.println("________________________________________________________________________________________________\n");
/*
* System.out.println(c); System.out.println(
* "________________________________________________________________________________________________\n"
* );
*/
System.out.println(bman);
System.out.println("________________________________________________________________________________________________\n");
System.out.println(b);
System.out.println("________________________________________________________________________________________________\n");
}
}