Question
I need help with creating the UML Class Diagram and the program that meets the requirements below, thank you very much. Project Requirements Each User
I need help with creating the UML Class Diagram and the program that meets the requirements below, thank you very much.
Project Requirements
Each User Defined Class must be in its own separate source text file. The Intellij IDE will assist you in creating separate class files using the File - New File Option from the pull down menu. Do not place more than one class description code in a single text file unless it is an inner class. The name of the class source file must be same name as the class.
Create a Class named Product
The fist part of the assignment is to create a Super Class named Product. create a basic UML Diagram for the Class named Product. After creating the Class Diagram, implement the Class and the methods of your class from the Class Diagram.
Requirements for the Product Class
A product has a product number, Product Name, and Purchased Price, and . The class should contain the basic functionality of a user defined object described in Chapters 8.
Create a Class named CellPhone
The next segment of this part of the assignment in this module is to create a basic UML Diagram for a CellPhone class and to create the class for the CellPhone. First create the Class Diagram. After creating the Class Diagram, create and implement the Class and the methods of your CellPhone class from the Class Diagram. The CellPhone class should inherit from Product.
Requirements for the CellPhone Class
Create a class named CellPhone . A CellPhone has a MAC number, Screen Size , and Model. The CellPhone class should contain the basic functionality of a user defined object described in Chapters 8 and 9 of the textbook.
Require Functionality in the CellPhone class
Set methods for each property
Get methods for each property
Default and initialization Constructors
toString Method
equals method
compareTo method
Require Functionality in the CellPhone class
Set methods for each property
Get methods for each property
Default and initialization Constructors
toString Method
equals method
compareTo method
You should: 1. Design and create the class declaration for the Cell Phone class according to the annotated UML diagram that you created, and add it to the IntelliJ project in a new Java class file.
2. Modify the executable Main Class containing the main method to test the Cell Phone Class, as follows:
a. You should instantiate a Cell Phone object. ( such as, Cellphone cp1 = new CellPhone(); cp1 is just an example. You can decide what to name the variable.)
b. You should instantiate a separate Cell Phone object using the initialization constructor.
c . print the initial data for the Cell Phone.
d. Change some values in these instances using the set methods that you created for the object
e. test your get methods by using them in print statements listing the values in the modified properties.
Overall Due the Following
- Instantiate some instances of your CellPhone. Use your initialization constructor to give an instance an initial state. Use your default constructor to give an instance a default state. After giving an instance a default state, use your set methods to change the state of an object. Use the (to String) method of CellPhone Class to print out the state of the instances of the CellPhone Class that was created in memory. Create statements that illustrate that your set and get methods are working correctly.
What You Need To Submit
Submit your UML Diagram in PDF Format
Submit your Assignment Project as a Zipped IntelliJ Project Folder
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started