in reply to Re: Re: Tutorial: Introduction to Object-Oriented Programming
in thread Tutorial: Introduction to Object-Oriented Programming
Although this is not a disadvantage, rather a reason to do it like Abigail proposes: You _will_ break things (and have subtle bugs to find) if you don't stick to documented accessor/mutator methods. Especially when you write a base class for all your classes that organizes a registry of all members of all instances(based on caller()), you'll see that if you write accessor methods for the same member with different names in two related classes, you assign different members, which is great but you probably didn't expect it because it has become a habit to have it work differently.
--http://fruiture.de
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Tutorial: Introduction to Object-Oriented Programming
by BrowserUk (Patriarch) on Dec 12, 2002 at 20:40 UTC | |
by fruiture (Curate) on Dec 12, 2002 at 21:12 UTC | |
by rdfield (Priest) on Dec 18, 2002 at 11:41 UTC | |
by fruiture (Curate) on Dec 18, 2002 at 13:45 UTC |
In Section
Meditations