See More

package sample; import java.util.HashSet; import java.util.Set; public class test { public static void main(String args[]) { //test t = new test(); parent p= new child(); p.dispaly(); child c = new child(); c.dispaly(); //int arr[]= {1,2,8,5,1,2,3,2,23}; //Set s=new HashSet(); //for(int i=0;i