Home > Back-end >  Guide for bosses
Guide for bosses

Time:09-18

A, design point point and the rect rectangle class (each item 1 item in this topic, 100 points, 100 points) 1. The design point of class point and the rect rectangle class
(1) the attributes of a class x, y, respectively is the abscissa and ordinate points,
(2) the rectangle class the rect including rectangular corner and the upper right corner of the two points,
(3) the rectangle class the rect including the calculation of the rectangular area method,
(4) constructor, initialize the data members
(5) to write the main function, complete testing,
  • Related