in reply to Re: (OT) OOUI: multiple views in an object.
in thread (OT) OOUI: multiple views in an object.
And so on and so forth. Having just one method completely hides the implementation details of whatever you need to do. Otherwise you just have a datastructure, not an object.$cm->{temp}=150; $cm->{amount}=100; $cm->{heat_time}=5;
And never, ever have to change those lines of code.my $cm=new Coffee_Machine; my $coffee=$cm->gimme_coffee(); my $cup=new Cup($coffee);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: (OT) OOUI: multiple views in an object.
by castaway (Parson) on Nov 01, 2003 at 11:21 UTC |