Skip to content
Sharp

Object-oriented programming · interview question

A Customer class has fields for name, email, and password. Which field should be handled with extra security considerations?

Multiple choiceHardchapter-2-curatedpremiumoopfields-and-state
Choose one answer
Answer and explanation

Correct answer

B. Password

Why

The 'password' field should be handled with extra security considerations because it contains sensitive information that can compromise user accounts if improperly stored or transmitted.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →