this is the first lecture developed by virtual university of pakist about object oriented programming. very useful and a start from the very basics about OO modeling.
Object oriented programming (oop) cs304 power point slides lecture 01
1.
2. Course Objective
Objective of this course is to make students familiar
with the concepts of object-oriented programming
Concepts will be reinforced by their implementation
in C++
4. Books
C++ How to Program
By Deitel & Deitel
The C++ Programming Language
By Bjarne Stroustrup
Object-Oriented Software Engineering
By Jacobson, Christerson, Jonsson, Overgaard
5. Marks Distribution
Assignments/Quizes 10%
Presentation 5%
Attendance 5%
Mid Term 20 %
Grading Policy
Marks Range (in %) Grade Point (Value) Grade
91 and above 4.0 A+
85-90 4.0 A
77-84 3.5 B+
70-76 3.0 B
60-69 2.5 C+
50-59 2.0 C
Below 50 0.0 F
11. …Example – OO Model
lives-in
Ali House
Objects
Abu Bakar drives
House
Car
Car Tree
Tree
Interactions
Abu Bakar lives in the house
Abu Bakar drives the car
13. What is an Object?
An object is
Something tangible (Ali, Car)
Something that can be apprehended intellectually
(Time, Date)
14. … What is an Object?
An object has
State (attributes)
Well-defined behaviour (operations)
Unique identity
15. Example – Ali is a Tangible Object
State (attributes)
Name
Age
behaviour (operations)
Walks
Eats
Identity
His name
16. Example – Car is a Tangible Object
State (attributes)
- Color
- Model
behaviour (operations)
- Accelerate - Start Car
- Change Gear
Identity
- Its registration number
17. Example – Time is an Object
Apprehended Intellectually
State (attributes)
- Hours - Seconds
- Minutes
behaviour (operations)
- Set Hours - Set Seconds
- Set Minutes
Identity
- Would have a unique ID in the model
18. Example – Date is an Object
Apprehended Intellectually
State (attributes)
- Year - Day
- Month
behaviour (operations)
- Set Year - Set Day
- Set Month
Identity
- Would have a unique ID in the model