MCQs > IT & Programming > Scala > Why would you make a field private?

Scala MCQs

Why would you make a field private?

Answer

Correct Answer: So only methods in the same class could access the field

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Scala Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it