What am I doing wrong??? Function help

Pages: 12
They're identical but for default privacy (and inheritance thereof).


Which is why you don't use them. It unnecessarily confuses the code to have two different types of declarations for the same thing. Unless you're explicitly trying to cause public behaviour by default, structs should not be defaulted to.
Last edited on
So NEVER use a class, just use a struct :) That way the code won't be confused by having two types of declaration for the same thing. Unless you're explicitly trying to cause private behaviour by default, classes should not be defaulted to.

There's no such thing as never in coding. There's even a place for goto.
Last edited on
But I am trying to explicitly cause private behaviour. ^.^
Topic archived. No new replies allowed.
Pages: 12