unit 4 (OOSE)
1. Object-Oriented Design (OOD)
Definition
Object-Oriented Design (OOD) is the process of converting the analysis model into a design model by identifying classes, objects, relationships, and interactions.
Objectives
- Identify classes and objects.
- Define relationships among classes.
- Design system architecture.
- Improve reusability.
- Reduce complexity.
- Support maintenance.
- Improve software quality.
2. Conventional v/s Object-Oriented Design
| Conventional Design | OO Design |
|---|---|
| Function-oriented | Object-oriented |
| Focus on functions | Focus on objects |
| Data and functions are separate | Data and functions are together |
| Less reusable | More reusable |
| Difficult maintenance | Easy maintenance |
| Uses DFD and flowcharts | Uses UML diagrams |
| Less flexible | More flexible |
7-Mark Answer
Conventional vs OO Design
- Conventional design is function-oriented.
- OO design is object-oriented.
- Conventional design separates data and functions.
- OO design combines data and functions.
- Conventional design has low reusability.
- OO design has high reusability.
- OO design is easier to maintain and extend.
3. CRC Cards
CRC = Class + Responsibilities + Collaborators
CRC cards are used to identify classes, their responsibilities, and collaborating classes.
Components
Class
Represents an object type.
Responsibilities
Tasks performed by the class.
Collaborators
Other classes that help perform tasks.
Example
| Class | Responsibilities | Collaborators |
|---|---|---|
| Student | Register Course, View Result | Course |
| Course | Store Course Details | Student |
Advantages
- Easy to understand.
- Helps identify classes.
- Improves team communication.
- Supports object-oriented design.
- Reduces design errors.
4. Class Diagram
Definition
A Class Diagram represents classes, attributes, methods, and relationships in a system.
Components
- Class Name
- Attributes
- Methods
- Relationships
Example
-----------------
| Student |
-----------------
| RollNo |
| Name |
-----------------
| Register() |
| Display() |
-----------------
Advantages
- Shows system structure.
- Easy to understand.
- Supports code generation.
- Improves design quality.
5. Interaction Diagram
Definition
An Interaction Diagram shows communication between objects to perform a task.
Types
- Sequence Diagram
- Collaboration Diagram
Sequence Diagram Example
Student -> Login Page
Login Page -> Database
Database -> Login Page
Login Page -> Student
Advantages
- Shows object interaction.
- Displays message flow.
- Helps understand system behavior.
- Easy debugging.
6. State Chart Diagram
Definition
A State Chart Diagram shows different states of an object and transitions between them.
Example: ATM Card
Idle
|
Insert Card
|
PIN Verification
|
Transaction
|
Eject Card
|
End
Advantages
- Shows object states.
- Represents dynamic behavior.
- Easy to understand lifecycle.
- Helps in system modeling.
7. Component Diagram
Definition
A Component Diagram shows software components and their dependencies.
Components
- User Interface
- Business Logic
- Database
Example
User Interface
|
Business Logic
|
Database
Advantages
- Shows software architecture.
- Improves modularity.
- Supports maintenance.
- Easy deployment planning.
8. Deployment Diagram
Definition
A Deployment Diagram shows physical deployment of software on hardware nodes.
Example
Client PC
|
Application Server
|
Database Server
Advantages
- Shows hardware structure.
- Helps deployment planning.
- Improves system understanding.
- Supports distributed systems.
9. ATM Case Study
Main Classes
- Customer
- ATM
- Account
- Transaction
Functions
- Insert Card
- Enter PIN
- Check Balance
- Withdraw Cash
- Deposit Money
- Transfer Funds
- Print Receipt
10. Payroll System Case Study
Main Classes
- Employee
- Payroll
- Salary
- Department
Functions
- Employee Registration
- Attendance Management
- Salary Calculation
- Tax Deduction
- Payroll Generation
- Report Generation
- Salary Slip Printing
11. Course Registration System Case Study
Main Classes
- Student
- Course
- Registration
- Faculty
Functions
- Student Login
- Course Selection
- Registration
- Fee Payment
- View Course List
- View Result
- Course Management
RGPV Most Important 7-Mark Questions
- Compare Conventional Design and OO Design.
- Explain CRC Cards with example.
- Explain Class Diagram with suitable example.
- Explain Interaction Diagram and its types.
- Explain State Chart Diagram with example.
- Explain Component Diagram and Deployment Diagram.
- Explain ATM System Case Study.
- Explain Payroll System Case Study.
- Explain Course Registration System Case Study.
Exam Tip: For every 7-mark answer write:
- Definition (2 lines)
- 5–7 key points
- Small diagram/example
This format usually fits RGPV evaluation style and helps score better.
Comments
Post a Comment