Lab (9) Week (10) Class & Object Diagram.pptx

AndrowShonoda 0 views 15 slides Oct 07, 2025
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

it show how strucure the object diagram is


Slide Content

Class & Object Diagram Lab (9) Week (10)

Class Diagram A class diagram: describes the elements of the system and the relationships between them. The object diagram visualizes instances of classes that are modeled in a class diagram

Class Diagrams the Attribute Syntax

1-Visibility 2-Derived Attribute 3-Name 4-Type 5-Multiplicity 6-Default Value 7-Properties

Pre-defined properties ▪ { readOnly } … value cannot be changed ▪ {unique} … no duplicates permitted ▪ {non-unique} … duplicates permitted ▪ {ordered} … fixed order of the values ▪ {unordered} … no fixed order of the values Attribute specification ▪ Set: {unordered, unique } ▪ Multi-set: {unordered, non-unique} ▪ Ordered set: {ordered, unique} ▪ List: {ordered, non-unique}

the Operation Syntax

Class [Static] Variables & Operations Instance variable (≡ instance attribute ). Class variable (≡ class attribute, static attribute ). Class operation (≡ static operation ).

Example(1) Classes of Library Management System : Library Management System class – It manages all operations of Library Management System. It is central part of organization for which software is being designed. User Class – It manages all operations of user. Librarian Class –  It manages all operations of Librarian. Book Class – It manages all operations of books. It is basic building block of system. Account Class – It manages all operations of account. Library database Class – It manages all operations of library database. Staff Class – It manages all operations of staff. Student Class – It manages all operations of studen

Attributes of Library Management System : Library Management System Attributes – UserType , Username, Password User Attributes – Name, Id Librarian Attributes – Name, Id, Password, SearchString Book Attributes – Title, Author, ISBN, Publication Account Attributes – no_borrowed_books , no_reserved_books , no_returned_books , no_lost_books fine_amount Library database Attributes – List_of_books Staff Class Attributes – Dept Student Class Attributes – Class

Methods of Library Management System : Library Management System Methods – Login(), Register(), Logout () User Methods – Verify(), CheckAccount (), get_book_info () Librarian Methods – Verify_librarian (), Search () Book Methods – Show_duedt (), Reservation_status (), Feedback(), Book_request (), Renew_info () Account Methods – Calculate_fine () Library database Methods – Add(), Delete(), Update(), Display(), Search()
Tags