Write a Class statement that defines a class named SongInfo. The class contains three Private String variables

Question:

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.

Instantiating an Object from a Class Syntax – Version 1 (Dim | Private) variableName As className variableName = New className Syntax – Version 2 (Dim | Private) variableName As New className Example 1 (using Syntax Version 1) Private hoursInfo As TimeCard O = hoursInfo = New TimeCard The Private instruction

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: