Question: 4. Write a Class statement that defines a class named SongInfo. The class contains three Private String variables named _strName, _strArtist, and _strSongLength. Name the
4. Write a Class statement that defines a class named SongInfo. The class contains three Private String variables named _strName, _strArtist, and _strSongLength.
Name the corresponding properties SongName, Artist, and SongLength. Then, use the syntax shown in Version 2 in Figure 11-5 to create a Song object, assigning it to a variable named hipHop.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
