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) Course: Understanding Objects, Classes, and Interactions, Slides of Object Oriented Programming

An introduction to object-oriented programming (oop) through docsity.com's course. The course objective is to make students familiar with oop concepts, which will be reinforced by their implementation in c++. Topics such as object-orientation, objects and classes, overloading, inheritance, polymorphism, generic programming, exception handling, and introduction to design patterns. An object is defined as something tangible or intellectual, having state (attributes), well-defined behavior (operations), and a unique identity. Examples include ali, car, time, and date.

Typology: Slides

2011/2012

Uploaded on 11/09/2012

bacha
bacha 🇮🇳

4.3

(41)

215 documents

1 / 16

Toggle sidebar

Related documents


Partial preview of the text

Download Object-Oriented Programming (OOP) Course: Understanding Objects, Classes, and Interactions and more Slides Object Oriented Programming in PDF only on Docsity! Object-Oriented Programming (OOP) 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 What is Object-Orientation? • A technique for system modeling • OO model consists of several interacting objects Docsity.com What is a Model? • A model is an abstraction of something • Purpose is to understand the product before developing it Docsity.com Examples – Model • Highway maps • Architectural models • Mechanical models 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 What is an Object? An object is • Something tangible (Ali, Car) • Something that can be apprehended intellectually (Time, Date) Docsity.com … What is an Object? An object has • State (attributes) • Well-defined behaviour (operations) • Unique identity 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 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 Docsity.com