In Java there is a swing away from inheritance, and it is possible that your practical exam papers may not have inheritance. Yes, there will still be four classes i.e. the UI class, the manager class and two template classes from which to create objects BUT the one class may not inherit from the other. This is called “Composite”. I have prepared a PowerPoint for you to work through in this regard. This is just a different way of doing things.

Here is a link to download the PowerPoint presentation. Note: The PowerPoint does have active links to the code so you may have to “Enable Content” and “Trust the source” to get access to the code. Once yu have the code you can re-create the project.

Click here for the inheritance code

 Click here for the composite code