Object-Oriented Programming (OOP) Lecture 1: Understanding Objects and Classes, Slides of Object Oriented Programming

The first lecture of an object-oriented programming (oop) course using c++ as the implementation language. The lecture covers the basics of object-orientation, objects and classes, and the advantages of using oo models. Students will be expected to read assigned textbooks and engage in group discussions. Assessments include assignments, mid-term, and final exams.

Typology: Slides

2011/2012

Uploaded on 08/08/2012

anchita
anchita 🇮🇳

4.4

(7)

113 documents

1 / 18

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Object-Oriented Programming
(OOP)
Lecture No. 1
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Object-Oriented Programming (OOP) Lecture 1: Understanding Objects and Classes and more Slides Object Oriented Programming in PDF only on Docsity!

Object-Oriented Programming

(OOP)

Lecture No. 1

Course Objective

Objective of this course is to make studentsfamiliar with the concepts of object-orientedprogramming

Concepts will be reinforced by theirimplementation in C++

Books

C++ How to Program

By Deitel & Deitel

The C++ Programming Language

By Bjarne Stroustrup

Object-Oriented Software Engineering

By Jacobson, Christerson, Jonsson, Overgaard

Grading Policy

Assignments

Group Discussion

Mid-Term

Final

What is Object-Orientation?

A technique for system modeling

OO model consists of several interactingobjects

What is a Model?

A model is an abstraction of something

Purpose is to understand the product beforedeveloping it

Example – OO Model

…Example – OO Model

Objects

Ali

House

Car

Tree

Interactions

Ali lives in the house

Ali drives the car

Ali Car

House

Tree

lives-in

drives

What is an Object?

An object is ►

Something tangible (Ali, Car)

Something that can be apprehendedintellectually (Time, Date)

… What is an Object?

An object has ►

State (attributes)

Well-defined behaviour (operations)

Unique identity

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