Answer 1.
to inherit a class we can use abstract classes, in which we have to instantiate the method into abstract class since abstract functions do not have any body.e.g.
class a: class b
(
public void input(int a, int b);
public void output(int c, float d);
)
|