Computer Science a car showroom, a public library, a pharmacy, a clinic, a school(any of these plz) 2- Choose a suitable system scenario which has different interacting entities (at least 3 of them). Write a description of your system and describe each entity with its states and behaviors. Put this description as the introduction of your project report. 3- Using the Unified Modeling Language (UML), design a class diagram for each entity and add them to the project report. There must be at least 3 DIFFERENT CLASSES (The test class is not included). Your classes should demonstrate the following OOP concepts: a. Appropriate package and class declarations. b. Composition relationship. c. Inheritance relationship. d. Encapsulation (turn states and behaviors into attributes and methods). e. Correct access modifiers and data types. f. Constructors and copy constructors. g. Get and set methods (with using this keyword). h. toString() and equals() methods. 4- In the IDE, write a class declaration in java for each class. You should have a separate java file (.java) for each class. Please apply coding principals to your code (that is, using appropriate comments, naming conventions, and indentation). 5- Write a test java application to demonstrate your system. The test code should be placed in a different package called test. Do not forget to include a UML class diagram for this test class in the report. Then, create multiple objects for different classes and test the methods. Take a screenshot of your test output and include it in the report.
Computer Science
a car showroom, a public library, a pharmacy, a clinic, a school(any of these plz)
2- Choose a suitable system scenario which has different interacting entities (at least 3 of them). Write a description of your system and describe each entity with its states and behaviors. Put this description as the introduction of your project report.
3- Using the Unified Modeling Language (UML), design a class diagram for each entity and add them to the project report. There must be at least 3 DIFFERENT CLASSES (The test class is not included). Your classes should demonstrate the following OOP concepts: a. Appropriate package and class declarations. b. Composition relationship.
c. Inheritance relationship.
d. Encapsulation (turn states and behaviors into attributes and methods).
e. Correct access modifiers and data types.
f. Constructors and copy constructors.
g. Get and set methods (with using this keyword).
h. toString() and equals() methods.
4- In the IDE, write a class declaration in java for each class. You should have a separate java file (.java) for each class. Please apply coding principals to your code (that is, using appropriate comments, naming conventions, and indentation).
5- Write a test java application to demonstrate your system. The test code should be placed in a different package called test. Do not forget to include a UML class diagram for this test class in the report. Then, create multiple objects for different classes and test the methods. Take a screenshot of your test output and include it in the report.
Step by step
Solved in 2 steps