#include <iostream>

using namespace std;

class MyClass {
    public:
        static const int A = 2;
        const int B = 4;
};

int main() {
    MyClass obj;
    /* This */
    cout << obj.A << endl; 
    /* Would be the same as this */
    cout << MyClass::A << endl; 
    /* B only belongs to obj */
    cout << obj.B << endl; 
    /* And this is illegal */
    //cout << MyClass::B << endl; 
   
   return 0;
}
