Home > Back-end >  A novice for help
A novice for help

Time:01-06

Below is the original question:
Geometric writing class, the class contains the following contents:
1. The representative of the type String geometry border color color variables, initial value for the "white"
2. Whether the Boolean represents the internal fill color filled variable
3. Type the Date of said the geometry's creation time dateCreated variable
4. No no-parameter constructor, set the dateCreated to system current time
5. Specify the color and filled value constructor, dateCreated for system current time
6. The variable color and fille get and set methods
7. Variable dateCreated get method
8. Rewrite the toString method to return the geometries of color, filled, and dateCreated values

(2) writing class Circle, the class from Geometric derived, including the following contents:
1. The representation of the double type radius radius variable
2. No no-parameter constructor, the radius of a value of 1.
3. Specify the radius of the radius, graphic border color color and internal whether fill color filled constructor, by calling the superclass specified color and the structure of the filled method for color and filled initialization,
4. The variable radius of get and set methods
5. Ask the perimeter getPerimeter ()
6. With area getArea () method
7. Rewrite the toString () method, the parent of the toString () method based on output radius value again

Then is my question:
The second, there is the Boolean rep filled variable is how? The Boolean I don't how to play before, don't know how to use;
Then there is the third type Date and dateCreated is what mean? There seems to be no, in textbooks that last system current time is how to return a responsibility?
For bosses to solve

CodePudding user response:

Private Boolean filledColor
Private Date dateCreated

CodePudding user response:

Have a good look at basic
The Boolean Boolean filled=false;//is true and false default values can be false is true
The Date dateCreated=new Date ();//is to get the current time, specific need what format the format by yourself
  • Related