class Parent{
public Parent(){
System.out.println("Parent");
}
int compute(int num){
return num+1;
}
}
class Child extends Parent{
public Child(){
System.out.println("Child");
}
int compute(int num){
return num+2;
}
}
class Main {
public static void main(String[] args) {
Parent obj = new Child();
System.out.println(obj.compute(3));
}
}