Object-Oriented Programming (OOP)
Object-Oriented Programming (OOP)
(OOP)
Week – 01
Jan 20-24, 2019
Instructor: Basit Ali
Object-Oriented Programming (OOP)
Course Outline
Course Outline
Course Outline
Books
1. “Problem Solving with C++”, 9th edition, Walter Savitch
2. “C++ How to Program” , 7th edition, Deitel & Deitel
3. C++ the complete reference, 4th edition - herbert schildt
Compiler: VS code
Marks Distribution (Assessments / Grading)
Programming Paradigms
• 1- Sequential
• 2- Procedural
• 3- Object Oriented
Programming Paradigms
Procedural vs. Object-Oriented Programming
Procedural vs. Object-Oriented Programming
• Highway maps
• Architectural models
• Mechanical models
Example – OO Model
…Example – OO Model
• Objects
• Ali
• House
• Car
• Tree
• Interactions
• Ali lives in the house
• Ali drives the car
Object-Orientation - Advantages
• People think in terms of objects
• An object is an instance of a class. With one class, you can have as many
objects as required
Structure V/S Class
Class and Object
What is an Object?
An object is
• Something tangible (Ali, Car)
• Something that can be apprehended intellectually (Time, Date)
An object has
• State (attributes)
• Well-defined behaviour (operations)
• Unique identity
Concept: An object has behaviors