Professional Documents
Culture Documents
Lecture 01-02
An Introduction to the Course
Imran Daud
Foundation University
Institute of management and computer sciences
Imran Daud
FUIMCS
Introduction
Imran Daud
FUIMCS
Objective
• To introduce students the basic Object Oriented
programming skills with an aim to:
Imran Daud
FUIMCS
Recommended Books and Other Material
• Text Book
– Object Oriented Programming in C++ by Robert Lafore
• Some good reference books are
– Beginning C++ By Ivor Horton
– C++ Premier Plus 4th Edition by Stephen Prata
– C++ How to Program 4th edition by Deitel and Deitel
– Thinking in C++, By Bruce Eckel
– Computing Essentials with C++ Concepts by Cay Horstman
– Programming and Problem Solving with C++ by Nell Dale
• Lecture Slides
• Any other material on Object Oriented Programming
Imran Daud
FUIMCS
Course Contents
Imran Daud
FUIMCS
Course Contents
Imran Daud
FUIMCS
Administrative
Imran Daud
FUIMCS
Quizzes
Imran Daud
FUIMCS
Assignments
Imran Daud
FUIMCS
Lab Work
• Each lab comprise of a lab exercise to be submitted during the same lab
time (2 Hrs.)
• Lab assignments to be submitted individually
Imran Daud
FUIMCS
Project
Imran Daud
FUIMCS
Evaluation Breakdown
– OHT(30) = 30%
– Final = 50%
– Quizzes = 5 %
– Assignments = 5 %
– Project = 10 %
Imran Daud
FUIMCS
Attendance Policy
Imran Daud
FUIMCS
OOP ABC
Imran Daud
FUIMCS
Why We Need OOP
Imran Daud
FUIMCS
Problems with UNstructured approach
• Unrestricted access
Imran Daud
FUIMCS
Problems with UNstructured approach
-difficult to conceptualize
- Change in global variable
causes rewriting
dependent functions
Imran Daud
FUIMCS
Object Oriented Approach
• The fundamental idea behind object-oriented language is to
combine both in a single unit
– data and
– the functions that operate on that data.
– Such a unit is called an object
Imran Daud
FUIMCS
Object Oriented Approach
Data
Member
Function
Member
Function
Object
Data
Data
Member
Member
Function
Function
Member Member
Function Function
Imran Daud
FUIMCS
Attributes
• Sometimes called characteristics
• Example:
– People: Eye color and job title
– Cars: horsepower and number of doors
Imran Daud
FUIMCS
Behavior
Imran Daud
FUIMCS
Why Objects?
Imran Daud
FUIMCS
Characteristics of Object Oriented
Languages
Imran Daud
FUIMCS
Kinds of Objects
Imran Daud
FUIMCS
Kinds of Objects
• Elements of the computer-user environment
– Windows
– Menus
– Graphics objects (lines, rectangles, circles)
– The mouse, keyboard, disk drives, printer
• Human Entities
– Employees
– Students
– customers
Imran Daud
FUIMCS
OO Programming Methodology
• Reusable Components
– Design or build new applications from existing object components
– Build new objects from existing objects
Imran Daud
FUIMCS
Objects and Behavior
Imran Daud
FUIMCS
OO Programming Methodology
• A Programming Methodology
– A different way to think about problems
– Adopt a new programming “Mindset”
Imran Daud
FUIMCS