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

Challenge: Protected Password

Task

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.

Everything was clear?

Section 3. Chapter 5
toggle bottom row
course content

Course Content

In-Depth Python OOP

Challenge: Protected Password

Task

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.

Everything was clear?

Section 3. Chapter 5
toggle bottom row
some-alt