Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #86016

Re: struct

From Lynn McGuire <lynnmcguire5@gmail.com>
Newsgroups comp.lang.c++
Subject Re: struct
Date 2022-08-23 17:36 -0500
Organization A noiseless patient Spider
Message-ID <te3kpr$33nnc$1@dont-email.me> (permalink)
References <20220823223421.0000455d@reddwarf.jmc.corp>

Show all headers | View raw


On 8/23/2022 4:34 PM, Mr Flibble wrote:
> 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

Why ?

Lynn

Back to comp.lang.c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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