-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInheritance.java
More file actions
49 lines (45 loc) · 1.09 KB
/
Copy pathInheritance.java
File metadata and controls
49 lines (45 loc) · 1.09 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
<<<<<<< HEAD
public class Inheritance {
public static void walk() {
System.out.println("walking");
}
public static void charging() {
System.out.println("charging");
}
public static void speak() {
System.out.println("speaking");
}
}
class teacherrobot extends Inheritance {
public static void teaching() {
System.out.println("teaching");
}
}
class doctorrobot extends Inheritance {
public static void surgery() {
System.out.println("doing surgery");
}
}
=======
public class Inheritance {
public static void walk() {
System.out.println("walking");
}
public static void charging() {
System.out.println("charging");
}
public static void speak() {
System.out.println("speaking");
}
}
class teacherrobot extends Inheritance {
public static void teaching() {
System.out.println("teaching");
}
}
class doctorrobot extends Inheritance {
public static void surgery() {
System.out.println("doing surgery");
}
}
>>>>>>> 4ecfcb4dd95708059f7b96dba0304ec457a84060