Skip to content

Commit dbfcd93

Browse files
author
Bruce Eckel
committed
Fixed {main: for gradle
1 parent 85ff834 commit dbfcd93

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

polymorphism/PrivateOverride.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// Trying to override a private method
6+
// {main: polymorphism.PrivateOverride}
67
package polymorphism;
78

89
public class PrivateOverride {

polymorphism/Sandwich.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// Order of constructor calls
6+
// {main: polymorphism.Sandwich}
67
package polymorphism;
78

89
class Meal {

polymorphism/music/Music.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// Inheritance & upcasting
6+
// {main: polymorphism.music.Music}
67
package polymorphism.music;
78

89
public class Music {

polymorphism/music/Music2.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// Overloading instead of upcasting
6+
// {main: polymorphism.music.Music2}
67
package polymorphism.music;
78

89
class Stringed extends Instrument {

polymorphism/music3/Music3.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// An extensible program
6+
// {main: polymorphism.music3.Music3}
67
package polymorphism.music3;
78
import polymorphism.music.Note;
89

0 commit comments

Comments
 (0)