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
f4544134
Commit
f4544134
authored
Aug 18, 2023
by
gu-jinli1118
Browse files
2023年8月18日
parent
73a1be62
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/utils/Shape.java
0 → 100644
View file @
f4544134
package
com.jsh.erp.utils
;
public
class
Shape
{
public
double
area
(
double
length
,
double
width
)
{
System
.
out
.
println
(
"Shape~area"
);
return
length
*
width
;
}
jshERP-boot/src/main/java/com/jsh/erp/utils/Triangle.java
0 → 100644
View file @
f4544134
package
com.jsh.erp.utils
;
public
class
Triangle
extends
Shape
{
@Override
public
double
area
(
double
length
,
double
width
)
{
System
.
out
.
println
(
"triangle ~area"
);
return
1.0
/
2
*
length
*
width
;
}
}
\ No newline at end of file
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