The private keyword is an access modifier used for attributes, methods and constructors, making them only accessible within the declared class.
Read moreHow do you call an attribute of an object in Java?
Variables that belong to an object are usually called attributes, but you might also see them called “fields”. To access an attribute of an object, Java uses dot notation . For example: int x = blank.
Read more