What is the purpose of a class specifier (declarations)??
class specifier secures your data to be excessed by other classes or from non-user ones.
Try it yourself https://code.sololearn.com/cC5UPR4NXGea/?ref=app
it ensures security for data so that it can't be used by other classes or unauthorised users