Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Protected Password | Encapsulation
In-Depth Python OOP

Swipe to show menu

book
Challenge: Protected Password

Task

Swipe to start coding

Wow, here is our User class again! Let's protect the password!

  1. All password attributes and arguments were replaced by the placeholder (___) to help you not miss some attributes.
  2. Use the protected access modifier (_) to protect the password attribute.

Note

Arguments taken by functions should be without protected access modifier.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 2.78

book
Challenge: Protected Password

Task

Swipe to start coding

Wow, here is our User class again! Let's protect the password!

  1. All password attributes and arguments were replaced by the placeholder (___) to help you not miss some attributes.
  2. Use the protected access modifier (_) to protect the password attribute.

Note

Arguments taken by functions should be without protected access modifier.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 2.78

Swipe to show menu

some-alt