Basic Java learning - Ignou MCA students
Session 4 ex 2 class players { String name,age; } class cricket_players extends players { void get_data(String n,int age) { System.out.println("Name : "+n + "Age "+age); } } class football_players extends players { void get_data(String n,int age) { System.out.println("Name : "+n + "Age "+age); } } class hockey_players extends players { void get_data(String n,int age) { System.out.println("Name : "+n + "Age "+age); } } class ketan { public static void main(String args[]) { cricket_players c=new cricket_players(); football_players f=new football_players(); hockey_players h=new hockey_players(); c.get_data("ABC",25); f.get_data("ABCD",28); h.get_data("ABCE",35); } } ================================================================== session 4 ex-3 class worker { Stri