Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c++ Subject: Re: MEMBER ACCESS Message-ID: <758@taumet.com> Date: 4 Jun 91 15:46:21 GMT References: <97edfa6b92f028446f60@rose.uucp> <2351@media03.UUCP> <14893@ector.cs.purdue.edu> Organization: Taumetric Corporation, San Diego Lines: 15 svb@cs.purdue.EDU (Stephan Bechtolsheim) writes: >As far as I am concerned > A.get_x() >doesn't read as well as does > A.x You can name the private data member priv_x and the access function x(). This leaves you with A.x() for reading the data. In another article, Joe Buck gives an excellent summary of why in general you don't want to provide direct access to data members. -- Steve Clamage, TauMetric Corp, steve@taumet.com