a- Prepare a MS. Word document that contain a UML represent a class of your choice, the class should satisfy the following properties: - Consists at least three private attributes. - Two constructors one with no arguments and one with arguments. - Getter and setter methods for all attributes. - Override the equals method. - implement the Comparable interface. - Override the toString methods to return a string which represents all object's information. b- Implement the above class using java and NetBeans IDE.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
a- Prepare a MS. Word document that contain a UML represent a class of
your choice, the class should satisfy the following properties:
- Consists at least three private attributes.
- Two constructors one with no arguments and one with arguments.
- Getter and setter methods for all attributes.
- Override the equals method.
implement the Comparable interface.
- Override the toString methods to return a string which represents
all object's information.
b- Implement the above class using java and NetBeans IDE.
C- Create class called Test with main method to do the following:
Create ArrayList object.
Create the 4 objects of the above class, the information should read
from input console.
Add the objects in the ArrayList object.
Display the information of all objects in the array list.
Transcribed Image Text:a- Prepare a MS. Word document that contain a UML represent a class of your choice, the class should satisfy the following properties: - Consists at least three private attributes. - Two constructors one with no arguments and one with arguments. - Getter and setter methods for all attributes. - Override the equals method. implement the Comparable interface. - Override the toString methods to return a string which represents all object's information. b- Implement the above class using java and NetBeans IDE. C- Create class called Test with main method to do the following: Create ArrayList object. Create the 4 objects of the above class, the information should read from input console. Add the objects in the ArrayList object. Display the information of all objects in the array list.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT