Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2
3
Abstract Classes
Inheritance
Polymorphism
In the context of object-oriented programming, is the ability to
create a variable, a function, or an object that has more than one
form.
Types of Polymorphism
Runtime Polymorphism
Abstract Class
Figure
Triangle Area
12
Bertrand Meyer:
Example
We have to implement the banking system such that there will be an
interface for the customer and the bank will be handling different type
of accounts in it like savings, current etc; each type of account is having
it’s own business logic to implement and policy. Bank foresee the
emergence of new type of accounts, we have to design the system
which should take into consideration the current requirements and
should be able to adopt to future changes.
UML Continue
UML offers a standard way to visualize a system's architectural
blueprints, including elements such as:
i. activities
ii. actors
iii. business processes
iv. database schemas
v. (logical) components
vi. programming language statements
vii. reusable software components.
20
21
Dynamic
Object diagram
State diagram
Activity diagram
Sequence diagram
Collaboration diagram
22
Implementation
Component diagram
Deployment diagram
23
UML Continue
UML offers a standard way to visualize a system's architectural
blueprints, including elements such as:
i. activities
ii. actors
iii. business processes
iv. database schemas
v. (logical) components
vi. programming language statements
vii. reusable software components.
25
26
Use Cases
Actions on a system initiated by an actor. These
are the main tasks performed by each actor. Use
cases represent complete functionality of a task.
A use case describes a discrete, standalone
activity that an actor can perform to achieve
some outcome of value.
Example: Register for course
28
Use Cases
User
Views
• Two or more actors interacting with a use case
Include Relationship
Extends
Example - 1
• Use Case: “Take Customer Order”
Primary Flows:
i. Actor enters Customer details
ii. Identify either customer is new or existing one
iii. Actor enters code for product required
iv. System displays Product details
v. Actor enters quantity required
vi. Actor enters Payment details
vii. System saves Customer Order
viii. Customer may return faulty goods
37
Alternative Flows:
In Case of Multiple products:
Possible Solution
39
Example – II
Special Case: Customer specified product
Possible Solution
41
Generalization
42
43