We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95f8f7e commit a8c3b1dCopy full SHA for a8c3b1d
inheritance.java
@@ -1,5 +1,7 @@
1
-class animal{
2
- void dog(){
+class animal
+{
3
+ void dog()
4
+ {
5
System.out.println("bark");
6
}
7
@@ -13,8 +15,10 @@ void birds(){
13
15
System.out.println("fly");
14
16
17
-public class inheritance {
- public static void main(String[] args) {
18
+public class inheritance
19
20
+ public static void main(String[] args)
21
22
air a1 =new air();
23
a1.dog();
24
a1.fish();
0 commit comments