MCQs > IT & Programming > Scala > Choose statement that best describes the line def?

Scala MCQs

Choose the statement that best describes the line def this(c: String) = this(0, c); for the code fragment below. class ABC(a: Int, b: Int, c: String) { def this(a: Int, c: String) = this(a, 0, c) def this(c: String) = this(0, c); }

Answer

Correct Answer: calls previous auxiliary constructor which calls the primary constructor

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