class SizeTest { static void main(String[] args) { Mouse m1 = new Mouse(); House h1 = new House(); Blouse b1 = new Blouse(); Size[] things = {m1, h1, b1}; for (Size s:things) System.out.println("Weight is " + s.weight()); } // end of main() } // end of class SizeTest interface Size { public double height(); public double weight(); } class Mouse implements Size { public double height() { return 5; }; public double weight() { return 5; }; } class House implements Size { public double height() { return 7; }; public double weight() { return 7; }; } class Blouse implements Size { public double height() { return 9; }; public double weight() { return 9; }; }