MOTHER CLASS

Description:

Write a program with a mother class and an inherited daughter class. Both of them should have a method void display ()that prints a message (different for mother and daughter).In the main define a daughter and call the display() method on it. Test Case 1 Input (stdin) 1 Expected Output display function Test Case 2 Input (stdin) 2 Expected Output display function

Program :

import java.util.*;

public class TestClass {

public static void main(String[] args) {

       System.out.printf("display function");

}

}