please see the attached instructions for this mini project. This is just a netbeans project using the code. You do not need to add any code. All the code is there. Once it is working zip the project please. Thank you!
COP3337
Inheritance- Mini Project
This is a mini project from you to get a better understanding of inheritance in Java.Doing this
project will reduce your studying time for the next exam and help you fully understand the
important little details.
It is not a waste of your time….
All you need to do is setup your Netbeans Project such that it matches the setup in the package
diagram below then type in all the code for the following files:
• Controller.java
• Car.java
• Motorcycle.java
• SUV.java
• Vehicle.java
The source code is provided at the end of this document.
What to focus on:
• Understand UML Diagram in detail
o Look at the UML diagram and identify methods that are refinements, overridden
and overload
o Be able to go from UML -> Code and Code -> UML
o FYI, # means protected
• Understand the casting in the code and why some casts do not work
• Understand which code is running and where it is coming from (which class is the code being
executed from)
•
•
Understand why we created a subclass
Understand the logic of the code
Package Diagram
UML Diagram
Controller.java
Code Section
Vehicle.java
Car.java
SUV.java
Motorcycle.java