4 ms·
he's talking about how in C++ you write the modifier once, and all subsequent declarations have the same access specifier, i.e: class A { public: int a
by listeria 1y ago
he's talking about how in C++ you write the modifier once, and all subsequent declarations have the same access specifier, i.e:
class A {
public:
int a;
float b;
private:
...
};
- zabzonk 1y agoOk, thanks - but surely this is the most sensible and readable way of doing things? Otherwise, why not make every member begin with "class A"? There probably is some language that requires this, I guess :-) Isn't language design wonderful.