Asaf
Reaction score
6

Profile posts Latest activity Postings Resources About

  • In C++, the only difference between structs and classes is the default access permission for members: in classes it's private and in structs it's public.
    In both you can change it by adding 'public:' 'protected:' or 'private:', but I guess I wanted the default there to be public.
    I'm just wondering: Why, in Power Up, is BuildingGainedPromotions a struct instead of a class? Do structs have advantages for smaller objects?
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top Bottom