9 lines
166 B
Java
9 lines
166 B
Java
// polymorphism/music/Instrument.java
|
|
package polymorphism.music;
|
|
|
|
class Instrument {
|
|
public void play(Note n) {
|
|
System.out.println("Instrument.play()");
|
|
}
|
|
}
|