delorie.com/archives/browse.cgi | search |
Message-Id: | <3.0.5.16.19990310161613.3f8f7714@mail.geocities.com> |
X-Sender: | john_meyer AT mail DOT geocities DOT com |
X-Mailer: | QUALCOMM Windows Eudora Light Version 3.0.5 (16) |
Date: | Wed, 10 Mar 1999 16:16:13 |
To: | djgpp AT delorie DOT com |
From: | John Meyer <john_meyer AT geocities DOT com> |
Subject: | Re: Structures vs. Classes |
In-Reply-To: | <36E6768B.6C91860E@xyz.net> |
Mime-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
At 01:41 PM 3/10/99 +0000, you wrote: >This is really a general C++ question but I don't read any other >newsgoup So. . . > >Anyway is there any reason to use a structure instead of a class in C++? Stylistically, I've been taught that a structure should be used when the object has no functions. A structure also defaults to public instead of the private default of classes.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |