java实验七
Create an interface called Playing. The interface has an abstract method called play(). Create classes called Child, Musician and Actor that implement Playing. Create a program that demonstrates the use of the classes. Playing.java Child.java Musician.java Actor.java UsePlaying.java Sample Output: I am a child and I am playing a game I am a musician and I am playing a song I am an actor and I am playing a part
用户评论