CSC186 - 2) Basic OO Design Using UML (Part 1)
CSC186 - 2) Basic OO Design Using UML (Part 1)
OBJECT ORIENTED
PROGRAMMING
Topic 2:
Basic OO Design using UML
(Part 1)
Topic Covered
1. Analysis
2. Design
3. Implementation
4. Testing
5. Maintenance
OOSE
◦ Is a design technique that is used in software design in
object-oriented programming.
Customer
class Customer
{
- cid private int cid;
- cname private String cname;
- mobile private String mobile;
private String email;
- email
public void purchase( ) { … }
+ purchase( ) public void login( ) { … }
+ login( ) public void logout( ) { … }
public void search( ) { … }
+ logout( )
}
+ search( )
Reverse Engineering Example
◦ Step:
1. Open the https://www.draw.io/
2. Choose UML
3. Choose the UML type
USE CASE DIAGRAM
Use Cases
◦ An actor is one which uses or interacts with the software system (subject).
Add Delete
Test Yourself 2
del member
system choose subject
user/admin add subject academic
remove subject
del subject
assg subject
unass subject
enrol subject
student
unenrol subject
OTHER USE CASE
DIAGRAM EXAMPLE
Use Case Diagram – Example1
(Library) library system
borrow
client employee
reserve
Order title
Fine payment
supplier
A Library System.
Use Case Diagram for Student
Assessment Management System
Grade system
Record
grades
Student
View grades
Teacher Distribute
Report cards
Create report
cards
Printing administrator
END.
Thank you.