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
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 XG to the strId variable?
a onHand.ItemId XG
b ItemId.strId XG
c onHand.strId XG
d ItemId.ItemId XG
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
