Skip to content

Commit e58d539

Browse files
authored
Create Java Inheritance II.java
1 parent b2fd3e5 commit e58d539

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//Write your code here
2+
class Arithmetic
3+
{
4+
public int add(int a,int b)
5+
{
6+
return a+b;
7+
}
8+
}
9+
class Adder extends Arithmetic
10+
{
11+
12+
}

0 commit comments

Comments
 (0)