Answered step by step
Verified Expert Solution
Question
1 Approved Answer
34 Extra exercises for Murack's Visual Basie 201 Use inheritance with the Inventory Maintenance application Extra 18-1 In this exercise, you'll add two classes to
34 Extra exercises for Murack's Visual Basie 201 Use inheritance with the Inventory Maintenance application Extra 18-1 In this exercise, you'll add two classes to the Inventory Maintenance application that inherit the Invltem class. Then, you'll add code to the forms to provide for these new classes New Inventory Hem O Plant Supply 13.35 I. Open the InventoryMaintenance project in the Extra Exercises Chapter 18UnventoryMaintenance directory. Then, review the code for the New Item form to see that the items in the combo box and the label for the combo box depend on which radio button is selected. 2. Display the Invltem Class and modify the GetDisplayText method so it's overridable 3. Add a class named Plant that inherits the Invltem class. This new class should a constructor that accepts four parameters (item number, description, price, and constructor to initialize the properties defined by that class. Finally, this class add a string property named Size. It should also provide a default constructor and size) to initialize the class properties. This constructor should call the base class should override the GetDisplayText method to add the size in front of the description, as in this example: 3245649 1 gallon Agapanthus ($7.95) 4. Add another class named Supply that inherits the Invltem class and adds a string property named Manufacturer. Like the Plant class, the Supply class should provide a default constructor and a constructor that accepts four parameters, and it should override the GetDisplayText method so the manufacturer is added in front of the description like this 9210584 Ortho Snail pellets ($12.95)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started