You are viewing a single comment's thread. Return to all comments →
//Created classes should not be public class Arithmetic { int add(int x, int y) { return x+y; } } class Adder extends Arithmetic{
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Inheritance II
You are viewing a single comment's thread. Return to all comments →
//Created classes should not be public class Arithmetic { int add(int x, int y) { return x+y; } } class Adder extends Arithmetic{
}