Write an interface called Playable, with a methodvoid play(); Let this interface be placed in a package called music. Write a class called Veena which implements Playable interface. Let this class be placed in a package music.string Write a class called Saxophone which implements Playable interface. Let this class be placed in a package music.wind Write another class Test in a package called live. Then, a. Create an instance of Veena and call play() method b. Create an instance of Saxophone and call play() method c. Place the above instances in a variable of type Playable and then call play()
https://www.mediafire.com/file/edoatbqbhs8qf5y/5A.zip/file
https://www86.zippyshare.com/v/WVQ0RWtj/file.html
Comments
Post a Comment