Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1a0dad7

Browse files
authored
Create Spaghetti.java
1 parent3d00c40 commit1a0dad7

File tree

1 file changed

+16
-0
lines changed
  • Inheritance and Polymorphism/Child Classes in Arrays and ArrayLists

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
classSpaghettiextendsNoodle {
2+
3+
Spaghetti() {
4+
5+
super(30.0,0.2,"round","semolina flour");
6+
7+
}
8+
9+
@Override
10+
publicStringgetCookPrep() {
11+
12+
return"Boil spaghetti for 8 - 12 minutes and add sauce, cheese, or oil and garlic.";
13+
14+
}
15+
16+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp