Chapter3_1-ClassesAndObjects

S gannouni dr a touir introduction to oop object

Info iconThis preview shows page 1. Sign up to view the full content.

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

Unformatted text preview: lose(d); where d is either D1 or D2 Page 4 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Object Oriented Programming • In Object-Oriented programming: • The doors are considered as active entities of the real world capable of interacting with their environments. • Each one of them offers two services open and close. Open() Close() • In order to open or to close a door, the user should: Order the appropriate door to perform the required action. – d.Open(); or – d.Close(); where d is either D1 or D2 Page 5 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Objects • Objects are key-concept to understand object- oriented technology. • Objects are entities of the real-world that may interact with their environments by performing services on demand. • Examples of real-world objects: your Car, your Cell-phone, the coffee slot-machine. • Each Nokia-N71 cell-phone is an object and may execute some services. Page 6 Dr. S. GANNOUNI & Dr. A. TOUIR Introduction to OOP Classes • Objects of th...
View Full Document

This document was uploaded on 03/03/2014.

Ask a homework question - tutors are online