• 大小: 238KB
    文件类型: .docx
    金币: 1
    下载: 0 次
    发布日期: 2021-06-14
  • 语言: Java
  • 标签: 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

资源截图

代码片段和文件信息

评论

共有 条评论