home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!prism!gt4084c
- From: gt4084c@prism.gatech.EDU (SRINIVASAN,K)
- Newsgroups: comp.object
- Subject: Re: Can functions be objects?
- Message-ID: <64210@hydra.gatech.EDU>
- Date: 23 Jul 92 20:18:50 GMT
- References: <2840@media03.UUCP>
- Organization: Georgia Institute of Technology
- Lines: 24
-
- In article <2840@media03.UUCP> pkr@media03.UUCP (Peter Kriens) writes:
- >
- >Functions as objects
-
- >Even in the book of Rebecca Wirfs-Brock
- >I am confronted with an Inquiry, a Deposit and a Withdrawal object
- >in the ATM.
-
- Look at the functions as Events about which you wish to store some
- attributes. In your example of Withdrawal, time taken, money withdrawn,
- etc., belong better to a withdrawal object than to the object representing
- the person who withdrew the money, right?
-
- BTW, I do modeling of manufacturing enterprises. The structured models
- usually have a function model and an information model. When I started
- with OO modeling, I thought only the contents of the info. model will
- be classes and the functions will be methods of these classes. However,
- I realized the need for 'function classes' real soon.
-
- --
- SRINIVASAN,K
- School of Textile Engineering Georgia Tech.
- uucp: ...!{allegra,amd,hplabs,seismo,ut-ngp}!gatech!prism!gt4084c
- ARPA: gt4084c@prism.gatech.edu
-