I do not understand the difference between these two statements in my C++ class:
class MyClass { public: private: static const int var = 0;
They are the same. But I would always go for Option 1 for a simple reason that the keywords const and int fit better when juxtaposed as they define the datatype. Where as the keyword static defines the accessibility of that variable.
const
int
static