Lect 2.1 Object-Oriented Model

Lect 2.1 - Lecture 2.1 Object-Oriented Model MAIN TOPICS Object-Oriented Programming Object-Oriented Model Components Objects Messages Methods

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

View Full Document Right Arrow Icon
Lecture 2.1 Object-Oriented Model MAIN TOPICS: Object-Oriented Programming Object-Oriented Model Components: Objects, Messages, Methods, Classes Properties: Abstraction, Encapsulation, Polymorphism, Inheritance References: Sebesta, Chapter 12, pg 457-494
Background image of page 1

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

View Full DocumentRight Arrow Icon
Object-Oriented Model 2 Topics Object-Oriented Programming Object-Oriented Model Components : Objects, Messages, Methods, Classes Properties : Abstraction, Encapsulation, Polymorphism, Inheritance
Background image of page 2
Object-Oriented Model 3 Object-Oriented Programming Designed to directly implement the object-oriented approach to problem solving Examples of object-oriented languages: Fundamental entity is object which receives and sends messages , performs computations, and has a local state that it can modify Solve problems by objects sending messages to one another Simula, Smalltalk, C++, Java, C# etc
Background image of page 3

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

View Full DocumentRight Arrow Icon
Object-Oriented Model 4 Components of Object-Oriented Model Four basic components: Objects An entity that contains both the attributes that describes the state of a real-world object and the actions that are associated with the real-world objects Messages Requests from one object to another for the receiving object to produce some desired result Methods Descriptions of operations that an object performs when it receives a message Classes A template for objects which consists of methods and state descriptions that objects belonging to
Background image of page 4
Object-Oriented Model 5 Components of Object-Oriented Model (cont’d) Producer 1 Object Producer 2 Object Producer Class void put (String msg) { } Buffer Object Buffer Class buffer.put(msg) Message sent by producer object to buffer object Method defined by buffer object
Background image of page 5

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

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

This note was uploaded on 12/08/2010 for the course SCE CSC301 taught by Professor Mr.leong during the Fall '10 term at Nanyang Technological University.

Page1 / 21

Lect 2.1 - Lecture 2.1 Object-Oriented Model MAIN TOPICS Object-Oriented Programming Object-Oriented Model Components Objects Messages Methods

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

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