Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
ce0fdeef
Commit
ce0fdeef
authored
Aug 18, 2023
by
gu-jinli1118
Browse files
666
parent
984d6be4
Changes
2
Show whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/utils/shape.java
View file @
ce0fdeef
package
com.jsh.erp.utils
;
package
com.jsh.erp.utils
;
public
class
s
hape
{
public
class
S
hape
{
public
double
area
(
int
length
,
int
width
)
{
public
double
area
(
double
length
,
double
width
)
{
System
.
out
.
println
(
"Shape~area"
);
System
.
out
.
println
(
"Shape~area"
);
return
length
*
width
;
return
length
*
width
;
}
}
}
jshERP-boot/src/main/java/com/jsh/erp/utils/triangle.java
View file @
ce0fdeef
package
com.jsh.erp.utils
;
package
com.jsh.erp.utils
;
public
class
t
riangle
extends
s
hape
{
public
class
T
riangle
extends
S
hape
{
@Override
@Override
public
double
area
(
int
length
,
int
width
)
{
public
double
area
(
double
length
,
double
width
)
{
System
.
out
.
println
(
"triangle ~area"
);
System
.
out
.
println
(
"triangle ~area"
);
return
1.0
/
2
*
length
*
width
;
return
1.0
/
2
*
length
*
width
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment