Someone mentioned accessor methods?
Alexander Dymo
cloudtemple at mksat.net
Tue Mar 9 21:32:03 UTC 2004
On Tuesday 09 March 2004 21:53, Steven T. Hatton wrote:
> Works just fine in Java, but I don't believe the same can be done in C++.
> Correct?
>
> Also, C++ers tend to simply use the name of the member field as the name of
> the retrieval (getter) method. Agreed?
>
> What about passing a reference verses passing a value; to the mutator
> (setter)?; as the return value?
>
> What about constness?
>
> Does someone have a paradigm for this they would like to share?
I like this one ;)
public:
void setMemberName(const type &memberName)
type memberName() const
private:
type m_memberName;
--
Alexander Dymo
Ukrainian State Maritime Technical University, ICST Department
More information about the KDevelop-devel
mailing list