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++
Course Contents Object-Orientation Objects and Classes Overloading Inheritance Polymorphism Generic Programming Exception Handling Introduction to Design Patterns
Books C++ How to Program By Deitel & Deitel The C++ Programming Language By Bjarne Stroustrup Object-Oriented Software Engineering By Jacobson, Christerson, Jonsson, Overgaard
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
What is Object-Orientation? A technique for system modeling OO model consists of several interacting objects
What is a Model? A model is an abstraction of something Purpose is to understand the product before developing it
Examples – Model Highway maps Architectural models Mechanical models
Example – OO Model
…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
Object-Orientation - Advantages People think in terms of objects OO models map to reality Therefore, OO models are easy to develop easy to understand
What is an Object? An object is Something tangible (Ali, Car) Something that can be apprehended intellectually (Time, Date)
… What is an Object? An object has State (attributes) Well-defined behaviour (operations) Unique identity
Example – Ali is a Tangible Object State (attributes) Name Age behaviour (operations) Walks Eats Identity His name
Example – Car is a Tangible Object State (attributes) - Color - Model behaviour (operations) - Accelerate - Start Car - Change Gear Identity - Its registration number
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
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

Object oriented programming (oop) cs304 power point slides lecture 01

  • 2.
    Course Objective Objective ofthis course is to make students familiar with the concepts of object-oriented programming Concepts will be reinforced by their implementation in C++
  • 3.
    Course Contents Object-Orientation Objects andClasses Overloading Inheritance Polymorphism Generic Programming Exception Handling Introduction to Design Patterns
  • 4.
    Books C++ How toProgram 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
  • 7.
    What is Object-Orientation? Atechnique for system modeling OO model consists of several interacting objects
  • 8.
    What is aModel? A model is an abstraction of something Purpose is to understand the product before developing it
  • 9.
    Examples – Model Highwaymaps Architectural models Mechanical models
  • 10.
  • 11.
    …Example – OOModel 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
  • 12.
    Object-Orientation - Advantages Peoplethink in terms of objects OO models map to reality Therefore, OO models are easy to develop easy to understand
  • 13.
    What is anObject? An object is Something tangible (Ali, Car) Something that can be apprehended intellectually (Time, Date)
  • 14.
    … What isan Object? An object has State (attributes) Well-defined behaviour (operations) Unique identity
  • 15.
    Example – Aliis a Tangible Object State (attributes) Name Age behaviour (operations) Walks Eats Identity His name
  • 16.
    Example – Caris a Tangible Object State (attributes) - Color - Model behaviour (operations) - Accelerate - Start Car - Change Gear Identity - Its registration number
  • 17.
    Example – Timeis 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 – Dateis 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