Description: 1) defines the interface PrintX, including a method printMyWay (), this method is not a parameter, the return value is null. 2) preparation of a rectangle class Rectangle class required to achieve PrintX interfaces are asking area, find the circumference of the method, printMyWay () method to be able to display the rectangle side length, area and perimeter. 3) preparation of a square class as a subclass of the class rectangle, square rectangle class inherits the class for the area and perimeter of methods, new ways to increase demand diagonal, rewritten printMyWay () method, which requires that the method can display square side length, area, perimeter and diagonal.
To Search:
File list (Check if you may need any files):
TextSquare\.classpath
..........\.project
..........\.settings\org.eclipse.jdt.core.prefs
..........\bin\PrintX.class
..........\...\Rectangle.class
..........\...\Square.class
..........\...\TextSquare.class
..........\src\Square.java
..........\...\TextSquare.java
..........\.settings
..........\bin
..........\src
TextSquare