Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!apple!well!al From: al@well.sf.ca.us (Alfred Fontes) Newsgroups: comp.lang.c++ Subject: Re: Public vs Private header files in C++ Message-ID: <25231@well.sf.ca.us> Date: 5 Jun 91 06:24:35 GMT References: <5243@servax0.essex.ac.uk> Lines: 17 whisd@sersun1.essex.ac.uk (Whiteside S D B) writes: >In C++ you have private/public/protected members, but the header file >must contain reference to all these things ... >iii) The user is burdened with too much detail when using the header file >as a documentation aid. This can be avoided to a certain extent by putting the public members at the top of the class definition, followed by protected and finally by private members. This saves the user from having to look at the private stuff. If you have inlines, they can immediately follow the end of the class definition. Al Fontes, Jr. al@well.sf.ca.us