By default, if you declare a member variable (or anything else) in a class but don't specify its access level, the member is considered private and cannot be accessed from outside, that is by a non-member, of that class. Therefore, to make a member accessible by other classes, you must declare it as public. ###>Par conséquent, pour rendre un membre accessible par d'autres classes, vous devez la déclarer comme public.