public static void main(String[] args) {
		// TODO Auto-generated method stub
		//Assuming stock of each sport is 2
		Sports sp1=new IndoorSports();
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		sp1=new Billiards(sp1);
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		sp1=new Carrom(sp1);
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		sp1=new Badminton(sp1);
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		Sports sp2=new OutdoorSports();
		System.out.println("\nTotal Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new Trekking(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new Cricket(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new HighJump(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new LongJump(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
	}
public static void main(String[] args) {
	
	
		Sports sp1=new IndoorSports();
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		sp1=new Billiards(sp1);
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		sp1=new Carrom(sp1);
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		sp1=new Badminton(sp1);
		System.out.println("Total Indoor Sports Stock:"+sp1.getCurrentStock());
		Sports sp2=new OutdoorSports();
		System.out.println("\nTotal Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new Trekking(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new Cricket(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new HighJump(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
		sp2=new LongJump(sp2);
		System.out.println("Total Outdoor Sports Stock:"+sp2.getCurrentStock());
	}
public static void main(string[] args) { sports sp1=new indoorsports(); system.out.println("total indoor sports stock:"+sp1.getcurrentstock()); sp1=new billiards(sp1); system.out.println("total indoor sports stock:"+sp1.getcurrentstock()); sp1=new carrom(sp1); system.out.println("total indoor sports stock:"+sp1.getcurrentstock()); sp1=new badminton(sp1); system.out.println("total indoor sports stock:"+sp1.getcurrentstock()); sports sp2=new outdoorsports(); system.out.println("\ntotal outdoor sports stock:"+sp2.getcurrentstock()); sp2=new trekking(sp2); system.out.println("total outdoor sports stock:"+sp2.getcurrentstock()); sp2=new cricket(sp2); system.out.println("total outdoor sports stock:"+sp2.getcurrentstock()); sp2=new highjump(sp2); system.out.println("total outdoor sports stock:"+sp2.getcurrentstock()); sp2=new longjump(sp2); system.out.println("total outdoor sports stock:"+sp2.getcurrentstock()); }