Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Course Objective
Objective
of this course is to make students familiar with the concepts of object-oriented programming
will be reinforced by their implementation in C++
Concepts
Course Contents
Object-Orientation
Objects
and Classes Overloading Inheritance Polymorphism Generic Programming Exception Handling Introduction to Design Patterns
Books
C++
How to Program
By Bjarne Stroustrup
Object-Oriented
Software Engineering
Grading Policy
Assignments
Group
15 % 5% 35 % 45 %
Object-Orientation (OO)
What is Object-Orientation?
A
OO
What is a Model?
A
Purpose
Examples Model
Highway
maps models
Architectural Mechanical
models
Example OO Model
Example OO Model
Objects
Ali
drives
lives-in
House
Car
Tree
Interactions
Object-Orientation - Advantages
People OO
Therefore,
What is an Object?
An object is
Something Something
What is an Object?
An object has
State
(attributes)
Name Age
behaviour
(operations)
Walks Eats
Identity
His name
(attributes)
- Color - Model
behaviour
(operations)
- Start Car
(attributes)
- Seconds
- Hours - Minutes
behaviour
(operations)
- Set Seconds
(attributes)
- Day
- Year - Month
behaviour
(operations)
- Set Day