Challenge: Protected Password
Tâche
Swipe to start coding
Wow, here is our User
class again! Let's protect the password!
- All
password
attributes and arguments were replaced by the placeholder (___
) to help you not miss some attributes. - Use the protected access modifier (
_
) to protect thepassword
attribute.
Note
Arguments taken by functions should be without protected access modifier.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 3. Chapitre 5
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Awesome!
Completion rate improved to 2.78
Challenge: Protected Password
Glissez pour afficher le menu
Tâche
Swipe to start coding
Wow, here is our User
class again! Let's protect the password!
- All
password
attributes and arguments were replaced by the placeholder (___
) to help you not miss some attributes. - Use the protected access modifier (
_
) to protect thepassword
attribute.
Note
Arguments taken by functions should be without protected access modifier.
Solution
Tout était clair ?
Merci pour vos commentaires !
Awesome!
Completion rate improved to 2.78Section 3. Chapitre 5
single