use a loop and the array to print all the intormation about the three pair c shoes without using a toString method.The information shall be printed sing the following format:
Habibon3 shoe1 = new Habibon3("Nike", 43, 250);
Habibon2 shoe2 = new Habibon2("Hanwag", 43.5, true);
Habibon2 shoe3 = new Habibon2("Merrell", 42, false);
System.out.println("\n Brand Name:"+shoe1.BRAND+ "\tSize:"+shoe1.Size+"\tWeight: "+shoe1.Weight+"\tgrams/shoe");
System.out.println("\n Brand Name:"+shoe2.BRAND+ "\tSize:"+shoe2.Size+"\tGore-Tex:"+shoe2.goreTex);
System.out.println("\n Brand Name:"+shoe3.BRAND+ "\tSize:"+shoe3.Size+"\tNo Gore-Tex:"+shoe3.goreTex);
|