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 Item class contains a Public method named GetDiscount. The method is a function. An application instantiates an Item object and assigns it to a variable named cellPhone. Which of the following can be used by the application to invoke the GetDiscount method? a. dblDiscount = Item.GetDiscount b. dblDiscount = cellPhone.GetDiscount c. dblDiscount = GetDiscount.cellPhone d. cellPhone.GetDiscount
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
The Purchase class contains a ReadOnly property named Tax. The property is associated with the Private dblTax variable. A button’s Click event procedure instantiates a Purchase object and assigns it to the currentSale variable. Which of the following is valid in the Click event procedure? a. lblTax.Text = currentSale.Tax.ToString("C2") b. currentSale.Tax = 15 c. currentSale.Tax = dblPrice * 0.05 d. None of the above.
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
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
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