Design: Class Diagram Design
Focus on designing class diagrams for object-oriented systems. Out of scope are dynamic diagrams like sequence or activity diagrams.
Functional Requirements
Non-Functional Requirements
+----------------+ +----------------+
| Animal |<-------| Dog |
+----------------+ +----------------+
| - name: String | | |
| + eat(): void | | + bark(): void |
+----------------+ +----------------+
^
|
+----------------+
| Cat |
+----------------+
| + meow(): void |
+----------------+
+----------------+ +----------------+
| Person |<>------| Car |
+----------------+ +----------------+
| - name: String | | - model: String |
| + drive(): void| +----------------+
+----------------+Class A
- attr1: int
+ method1()attr1 and '+' before method1() mean?attr1 is private attribute, method1() is public method.Class Car
- engine: Engine
- wheels: List<Wheel>
-- engine "1" --- "4" wheelsLibrary has many Book objects, and each Book can have multiple Authors. Which of the following best represents this relationship?Pass the test and this pattern moves unknown