public class Bar extends Foo { // 1
public static void main(String[] args) { // 2
System.out.print(sum(1, 2)); // 3
}
}
class Foo {
int sum(int x, int y) {
return x + y;
}
}
where to change language, don't tell me that i came to loose time here
2025 Dec 14, 3:07:26 AM
Login in to like
Login in to comment