Question: Java Question: Write a Song class that contains instance variables title, artist and lyrics. Define a method play inside the Song class that prints the

Java Question: Write a Song class that contains instance variables title, artist and lyrics. Define a method play inside the Song class that prints the title, artist, and lyrics of a song when invoked. The method should accept no parameters and return no value. Then write a driver class to create a few Song objects and play them (pick your favorite ones!). Since lyrics are usually long, you may only store and print the first few sentences Hint: you may find Dog2.java and DogTestDrive2.java useful. Sample Output: New Order - Singularity Winter came so soon And summer never happened We're players on a stage With roles already scripted Pink Floyd - Wish you were here So, so you think you can tell Heaven from Hell, blue skies from pain Can you tell a green field from a cold steel rail? A smile from a veil? Do you think you can tell
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
