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(); ...