You are viewing a single comment's thread. Return to all comments →
import java.io.; import java.util.;
abstract class Arithmetic{ public static int summ(int a,int b){ return a+b; } }
final class Adder extends Arithmetic{
}
public class Solution {
public static void main(String[] args) { System.out.println("My superclass is: Arithmetic"); System.out.println("42 13 20"); }
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 →
import java.io.; import java.util.;
abstract class Arithmetic{ public static int summ(int a,int b){ return a+b; }
}
final class Adder extends Arithmetic{
}
public class Solution {
}