Description: Define a rectangle class Rectangle, and then derive a square class Square, expand their own members and methods. And then define the interface EqualDiagonal, which contains methods getDiagonal (), in rectangles and squares class class implements this interface, used to achieve the hypotenuse calculations.
To Search:
File list (Check if you may need any files):
第二题\.classpath
......\.project
......\.settings\org.eclipse.jdt.core.prefs
......\bin\ABC\EqualDiagonal.class
......\...\...\Hypotenuse.class
......\...\...\Rectangle.class
......\...\...\Square.class
......\src\ABC\Hypotenuse.java
......\...\...\Rectangle.java
......\bin\ABC
......\src\ABC
......\.settings
......\bin
......\src
第二题