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
• Each one of them offers two services open and
• In order to open or to close a door, the user
Order the appropriate door to perform the required
– 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
- Spring '14
- Object-Oriented Programming, Dr. S. GANNOUNI, Dr. A. TOUIR