TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ROGER SCUDDER
from: KURT KUZBA
date: 1997-09-14 11:40:00
subject: Worked this out

RS> KK>   class MathCalc
RS> KK>   {
RS> KK>   private:
RS> KK>      int iVar1, iVar2, iResult;
RS>   Why do you code the private keyword when the data is
RS>   private by default.  Is this considered good style?
   I don't know, really. It's just something I picked up.
   I always put the public functions at the top of the class
   and then put in the private members later, which means I
   have to specify that they are private.
   I suppose I could save a line of source text by putting
   the private data first and using the default, but having
   the public functions listed first just seems to be more
   user friendly when I want to look them up.
> ] Cold pizza is Nature's most perfect food....................
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.