FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaRepository/ivanchuk/src/additionalTask6/Cube.java at master · karzhouAndrew/JavaRepository · GitHub
karzhouAndrew
/
JavaRepository
Public
Notifications
You must be signed in to change notification settings
Fork
16
Star
0
Code
Issues
0
Pull requests
96
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaRepository
/
ivanchuk
/
src
/
additionalTask6
/
Cube.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (23 loc) · 579 Bytes
Breadcrumbs
JavaRepository
/
ivanchuk
/
src
/
additionalTask6
/
Cube.java
Copy path
File metadata and controls
30 lines (23 loc) · 579 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package
additionalTask6
;
public
class
Cube
{
private
int
edgeLength
;
private
String
color
=
"Черный"
;
public
Cube
(
int
edgeLength
) {
this
.
edgeLength
=
edgeLength
;
}
public
String
getColor
() {
return
color
;
}
public
int
getEdgeLength
() {
return
edgeLength
;
}
public
void
repaint
(
String
color
) {
this
.
color
=
color
;
}
public
int
calculateArea
() {
return
6
*
edgeLength
*
edgeLength
;
}
public
int
calculateVolume
() {
return
edgeLength
*
edgeLength
*
edgeLength
;
}
}
Back
|
FazBrowse Home
|
New Git URL