Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

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)

115 documents

1 / 18

Toggle sidebar

Related documents


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 docsity.com 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++ docsity.com Grading Policy ►Assignments 15 % ►Group Discussion 5 % ►Mid-Term 35 % ►Final 45 % docsity.com Object-Orientation (OO) docsity.com What is Object-Orientation? ►A technique for system modeling ►OO model consists of several interacting objects docsity.com Example – OO Model docsity.com …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 docsity.com Object-Orientation - Advantages ►People think in terms of objects ►OO models map to reality ►Therefore, OO models are  easy to develop  easy to understand docsity.com Example – Ali is a Tangible Object ►State (attributes)  Name  Age ►behaviour (operations)  Walks  Eats ►Identity  His name docsity.com Example – Car is a Tangible Object ►State (attributes) - Color - Model ►behaviour (operations) - Accelerate - Start Car - Change Gear ►Identity - Its registration number docsity.com 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 docsity.com