Task1 – Creation of Abstract Equipment Class
You have determined that the program would be best managed using an abstract class as a starting point.
The Equipment abstract class will feature standard properties and methods that are common between all equipment categories.
You will need to create the abstract class as outlined below:
• There are three class properties (make, model and purchaseYear) – you will need create methods to ‘get’ and ‘set’ each of these
• You are to create an abstract method called ‘replacementYear’. This is only the shell of a method that will be overridden in child classes i.e. there is no need to implement this method.
• You are to create a method called ‘showDetails’ that displays the ‘make’, ‘model’, ‘purchaseYear’ and ‘replacementYear’ of equipment as one string.
Abstract Class - Equipment
Properties
Students succeed in their courses by connecting and communicating with an expert until they receive help on their questions
Consult our trusted tutors.