default visibility mode in c++ classes is private
so in your class definition of Class A
int a is private
and in class B
int b and c is private
and if you want to specify private by your self you can write
just like you wrote
and the change occur is if data is private than it can only be accessible inside the class definition.