Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: listener Download
  • Category:
  • Jsp/Servlet
  • Tags:
  • File Size:
  • 37kb
  • Update:
  • 2013-04-27
  • Downloads:
  • 0 Times
  • Uploaded by:
  • amber
 Description: Design interface method, the interface is just a method: double calArea, (), used to calculate the area. (2) the design of the rectangle class Rectangle, and interface Method requirements are as follows: member variable length: int, on behalf of the length of the rectangle member variable width: int, width of the rectangle constructor Rectangle (int l, int w) : the length and width initialize the value given for the parameter implementation of the interface the method calArea (): according to the long length and wide width to calculate the area of ​ ​ a rectangle. (3) Design square Square, inheritance rectangle class Rectangle requirements are as follows: member variable edge: int, on behalf of the side of a square constructor Square (int e): the side length of the edge initialization parameters given value override the parent the class methods calArea (): calculate the area of ​ ​ a square member method int calPerimeter (): calculated based on the long side e
 Downloaders recently: [More information of uploader amber]
 To Search:
File list (Check if you may need any files):
 

[5]SummaryInformation
0Table
Data
WordDocument
[5]DocumentSummaryInformation
    

CodeBus www.codebus.net