NTU-OOP-Tuts-2025-1/T5Q2-A-Sol1/src/ClassB.java

6 lines
107 B
Java

public class ClassB extends ClassA {
public void print(int x) {
System.out.println(x);
}
}