Dynamic Structural Modeling
Dynamic Structural Modeling
Modeling in Java
Unit 2: Detailed Concepts and
Examples
Basic Behavioral Modeling
• 1. Use Cases: Describe system functionalities
from the user's perspective.
• 2. Use Case Diagrams: Show interactions
between actors and use cases.
• 3. Activity Diagrams: Represent workflows
with decisions and actions.
• 4. State Machine Diagrams: Show transitions
between object states.
• 5. Process and Threads: Handle concurrent
operations.
Use Case Example: User Login
Use Case: User logs into the system.
Actors: User
Flow:
1. User enters credentials.
2. System validates credentials.
3. User gains access to the system.
• Store Objects:
• List<Student> students = new ArrayList<>();
Example: Inheritance
• Inheritance Example:
• class Parent {
• void display() {
• System.out.println("This is the parent
class");
• }
• }