Structs
vs. Classes
•But, couldn’t I use a class instead and specify the
members as public to avoid using friends?
yes...but...
–then what is the
difference between a class and a struct?
–personally, I consider
that structs should be used when
you simply want to group different data items and that classes be used when you want to create new data types, new abstractions, or are doing OOP