Question: The Inventory class contains a Private variable named _strId. The variable is associated with the Public ItemId property. An application instantiates an Inventory object and

The Inventory class contains a Private variable named _strId. The variable is associated with the Public ItemId property. An application instantiates an Inventory object and assigns it to a variable named onHand. Which of the following can be used by the application to assign the string “XG45” to the _strId variable?

a. onHand.ItemId = "XG45"

b. ItemId._strId = "XG45"

c. onHand._strId = "XG45"

d. ItemId.strId = "XG45"

Step by Step Solution

3.48 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a on... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming with Microsoft Visual Basic 2015 Questions!