Task 4– Creation of Standard Equipment Class
You are to create a class named ‘StandardEquipment’. This class is designed to keep track of the replacement of standard (non-powered) equipment such as rakes, brooms and shovels.
You will need to create the class as outlined below:
• The ‘StandardEquipment’ class should inherit from the ‘Equipment’ class (take advantage of super)
• The class should have a constant value that sets the maximum time an item can be retained
• The class should have a property to store the durability of individual items and should also have associated functions to get and set the durability
• At class initialisation you should be able to set the make, model, purchase date and durability of the item
• The replacementYear function should be overridden to return the replacement year (based on calculations outlined in the requirements section)
Class - StandardEquipment
Properties
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.