1) Just for reference. struct and class are interchangeable in c++, but in struct everything is public by default, where as in a class everything is private by default: Both `A` and `B` are equivalent below
```c++
struct A { int x; private: double y };
class B { double y; public: int x };
```