Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
bartleby

Videos

Textbook Question
Book Icon
Chapter 10, Problem 3RQ

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?

  1. a. onHand.ItemId = "XG45"
  2. b. ItemId.strId = "XG45"
  3. c. onHand.strId = "XG45"
  4. d. ItemId.strId = "XG45"
Blurred answer
Students have asked these similar questions
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"
An application instantiates an Animal object and assigns it to the cat variable. Which of the following stores the value returned by the Animal class’s GetName method in the strName variable?a. strName = Animal.GetNameb. strName = cat.GetNamec. strName = Animal.GetName.catd. none of the above
The Item class contains a Private variable named _dblCost. The variable is associated with the Public Cost property. An application instantiates an Item object and assigns it to a variable named phone. Which of the following can be used by the application to assign the number 150.65 to the _dblCost variable?a. phone.Cost = 150.65b. item.Cost = 150.65c. phone._dblCost = 150.65d. item._dblCost = 150.65
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
CPP Function Parameters | Returning Values from Functions | C++ Video Tutorial; Author: LearningLad;https://www.youtube.com/watch?v=WqukJuBnLQU;License: Standard YouTube License, CC-BY