java实验七

时间:2021-12-04 05:07:57
【文件属性】:

文件名称:java实验七

文件大小:238KB

文件格式:DOCX

更新时间:2021-12-04 05:07:57

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


网友评论