5 Questions
Which visibility modifier in Kotlin means that the member is visible inside the class only (including all its members)?
private
Which visibility modifier in Kotlin means that the member has the same visibility as one marked as private, but it is also visible in subclasses?
protected
Which visibility modifier in Kotlin means that any client inside the module who sees the declaring class sees its internal members?
internal
Which visibility modifier in Kotlin means that any client who sees the declaring class sees its public members?
public
What is the default visibility modifier in Kotlin?
public
Test your knowledge on Kotlin visibility modifiers and learn how they apply to different elements such as classes, objects, interfaces, constructors, functions, and properties. Explore the concepts of private, protected, internal, and public modifiers in this informative quiz.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free