Re: Explane please....
- Posted by Bernie Ryan <bwryan at PCOM.NET> Mar 10, 1999
- 528 views
In simple words Object Orientated Programming ( sometimes called OOP ) An object is a magic box that contains all the data, procedures, and functions used to perform a special task. This box can can be connected to other boxes to form a program. These are magic boxes and we don't know what is inside them. All we know is what messages to send them and what messages we will receive from them. We can not change the data directly inside of them. But they have special messages that we can use to exchange data with them if the programmer allows us to. These magic boxes and all there features are described by a blueprint called a CLASS. In this blueprint the programmer discribes: All of the internal data that the box uses All of the messages that you will accept All of the messages that you will send And any other internal processing Remember the OBJECT is what does the work the CLASS is just the blueprint A WINDOW is an OBJECT We send it messages, it can send messages back, and we can send and get data from it. But we CAN'T change how it responses because we don't have the source code. And thats the idea of oop to be able to use some object that someone else wrote without being able to know how it works inside or care, All we have to know is what messages to use. Be careful that you don't confuse the word "object" in Euphoria with the OBJECT in OOP. I hope this helps Bernie