Question from the Java - Fundamentals test

How to make the attribute "nb_questions" accessible without having to getter or instantiate a new class?

Easy
private int nb_questions;

What keyword should be added so that the "nb_questions" attribute can be called without having to getter or instantiate a new class?

Author: PierreStatus: PublishedQuestion passed 710 times
Edit
-1
Community Evaluations
developer avatar
Incorrect answer
Aaron
21/05/2024
static fait de l'attribut un attribut de classe plutôt que propre à une instance de celle-ci. Cela ne change en rien l'accessibilité depuis d'autres classes, qui serait changé par l'utilisation du mot clé public au lieu de private.