#: 11902 S12/OS9/68000 (OSK)
23-Aug-91 08:14:57
Sb: #11899-#Questions
Fm: Mark Wuest 74030,332
To: Scott t. Griepentrog 72427,335 (X)
Scott,
Maybe when I have finished coding a couple of the classes I designed for our
project I'll upload them, "::"'s and all . I can think of a couple where the
data hiding concept is really kinda nice - users of the class don't have to
allocate storage or anything. One is a fifo message buffer that buffers up to
10 messages in ram, then starts putting them to the disk. All users of the
class have to know is
msgbuf.putmsg();
... and ...
msgbuf.getmsg();
without knowing what it does or how it does it. And just by declaring a
"msgbuf", all the memory is allocated for you, the msg queues are created, and
the file is opened. Either way, you'll learn it when you need to (as in, when
it's forced on you, like me). :)
Mark
There is 1 Reply.
|