You have determined that the program would be best managed using an abstract
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

You have determined that the program would be best managed using an abstract

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


Hint
Computerstarting point; fundamental idea; indication; lead; pointer; suggestion; terminus a quo; beginning point; basic principle; basis; principle; motivation; point of departure; fundamental idea; indication; lead; pointer; suggestion; jumping off point; terminus a quo. Finding one's beginning point entails keeping track of one's emotional state on a daily basis, noting periods of the day when a...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.