// Online Java Compiler
// Use this editor to write, compile and run your Java code online
import [Link];
class base{
int num;
void display()
{
[Link](num);
}
}
class ProblemSolution extends base {
void solution(int N)
{
num = N;
display();
}
public class InheritanceDemo {
public static void main(String[] args) {
ProblemSolution ps = new ProblemSolution();
[Link](50);
}
}