W01L01 - Object Orientation (SE-II)

W01L01 - Object Orientation (SE-II) - Click to edit Master...

Info iconThis preview shows pages 1–20. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Click to edit Master subtitle style 3/28/11 Object Orientation 3/28/11 What is Object-Orientation?  A technique for system modeling  OO model consists of several interacting objects 3/28/11 What is a Model?  A model is an abstraction of something  Purpose is to understand the product before developing it 3/28/11 Examples Model  Highway maps  Architectural models  Mechanical models 3/28/11 Example OO Model 3/28/11 Example OO Model  Objects Ali House Car Tree  Interactions Ali lives in the house Ali Car House Tree lives-in drives 3/28/11 Object-Orientation - Advantages  People think in terms of objects  OO models map to reality  Therefore, OO models are easy to develop 3/28/11 What is an Object? An object is  Something tangible (Ali, Car)  Something that can be apprehended intellectually (Time, Date) 3/28/11 What is an Object? An object has  State (attributes)  Well-defined behaviour (operations)  Unique identity 3/28/11 Example Ali is a Tangible Object  State (attributes) Name Age  behaviour (operations) Walks Eats  Identity 3/28/11 Example Car is a Tangible Object  State (attributes)- Color- Model  behaviour (operations)- Accelerate- Start Car- Change Gear  Identity 3/28/11 Example Time is an Object Apprehended Intellectually  State (attributes)- Hours- Seconds- Minutes  behaviour (operations)- Set Hours- Set Seconds- Set Minutes 3/28/11 Example Date is an Object Apprehended Intellectually  State (attributes)- Year- Day- Month  behaviour (operations)- Set Year- Set Day- Set Month  Identity 3/28/11 Example Encapsulation  A Phone stores phone numbers in digital format and knows how to convert it into human-readable characters  We dont know How the data is stored How it is converted to human-readable 3/28/11 Object has an Interface  An object encapsulates data and behaviour  So how objects interact with each other?  Each object provides an interface (operations)  Other objects communicate through this interface 3/28/11 Abstraction  Abstraction is a way to cope with complexity.  Principle of abstraction: Capture only those details about an object that 3/28/11 Example Abstraction  Attributes- Name- Employee ID- Student Roll No- Designation- Year of Study- Salary Ali is a PhD student and teaches BS students 3/28/11 Example Abstraction  behaviour- Study- DevelopExam- GiveExam- TakeExam- PlaySports- Eat- DeliverLecture- Walk Ali is a PhD student and teaches BS students 3/28/11 Example Abstraction...
View Full Document

This note was uploaded on 03/28/2011 for the course CS 643 taught by Professor Naumanriazchaudhry during the Spring '11 term at École Normale Supérieure.

Page1 / 124

W01L01 - Object Orientation (SE-II) - Click to edit Master...

This preview shows document pages 1 - 20. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online