Question: Create a class for the product in case one, using any two ( 2 ) product properties as themembers of the Class . 1 2

Create a class for the product in case one, using any two (2) product properties as themembers of the Class.12 Marks]b. Create a property procedure for any two of the properties. Assume that all properties are read-and-write and also, be mindful to implement all necessary validations.(2 Marks]c.Create a method for the product class to allow adding stock to the product's quantity.Note that the method must first check if the quantity to add is greater than zero. If valid, increases the Stock Quantity and displays a success message. Otherwise, displays an error message.14 Marks)d. Write the VB code that will assign values entered into TextBoxes to the properties created in (b) for an object created from the product class.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Questions!