-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParent.java
More file actions
37 lines (33 loc) · 796 Bytes
/
Parent.java
File metadata and controls
37 lines (33 loc) · 796 Bytes
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
<<<<<<< HEAD
class Parent {
void show() {
System.out.println("This is Parent class");
}
}
class Child extends Parent {
void display() {
System.out.println("This is Child class");
}
public static void main(String[] args) {
Child obj = new Child();
obj.show(); // from Parent
obj.display(); // from Child
}
}
=======
class Parent {
void show() {
System.out.println("This is Parent class");
}
}
class Child extends Parent {
void display() {
System.out.println("This is Child class");
}
public static void main(String[] args) {
Child obj = new Child();
obj.show(); // from Parent
obj.display(); // from Child
}
}
>>>>>>> 88d54c5 (hellooooo)