in reply to Re: evolving an OO solution for a bitstream
in thread evolving an OO solution for a bitstream
What is OO for you ? Is OO all-of-the-features together, or can we refer to some OO features as OO. Is OO only what uses polymorphism ? I don't think so. True, poly- is one of the most interesting features of OO, but there can be OO without it as well.use BitStream; ... ... my $stream = BitStream::new("bigbinfile"); ... my $bitstr = $stream->get_bits(128);
Why I think my code is OO ?
I have the notion of a BitStream object, which has some internal state and provides some services. This internal state is conveniently encapsulated from the user. The user has no idea how it is implemented, and BitStream's implementation can change at any moment preserving the interface. I can have several BitStream objects, they're separate from each other. etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: evolving an OO solution for a bitstream
by Abigail-II (Bishop) on Oct 21, 2003 at 11:18 UTC | |
by dragonchild (Archbishop) on Oct 21, 2003 at 14:10 UTC | |
by Abigail-II (Bishop) on Oct 21, 2003 at 14:23 UTC |