Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #86015
| From | Mr Flibble <flibble@reddwarf.jmc.corp> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | struct |
| Message-ID | <20220823223421.0000455d@reddwarf.jmc.corp> (permalink) |
| Organization | Jupiter Mining Corporation |
| Date | 2022-08-23 22:34 +0100 |
Consider using struct instead of class if you don't have a class invariant. Also, adding a public member function to a class actually reduces encapsulation -- prefer free functions instead. Message ends. /Flibble
Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread
struct Mr Flibble <flibble@reddwarf.jmc.corp> - 2022-08-23 22:34 +0100
Re: struct Lynn McGuire <lynnmcguire5@gmail.com> - 2022-08-23 17:36 -0500
Re: struct Sam Varshavchik <mrsam@courier-mta.com> - 2022-08-23 20:48 -0400
Re: struct Öö Tiib <ootiib@hot.ee> - 2022-08-24 00:20 -0700
csiph-web