Kotlin Visibility Modifiers Quiz
5 Questions
2 Views

Kotlin Visibility Modifiers Quiz

Created by
@LuxuriousWoodland

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which visibility modifier in Kotlin means that the member is visible inside the class only (including all its members)?

  • private (correct)
  • internal
  • public
  • protected
  • 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?

  • private
  • public
  • protected (correct)
  • internal
  • Which visibility modifier in Kotlin means that any client inside the module who sees the declaring class sees its internal members?

  • internal (correct)
  • public
  • protected
  • private
  • Which visibility modifier in Kotlin means that any client who sees the declaring class sees its public members?

    <p>public</p> Signup and view all the answers

    What is the default visibility modifier in Kotlin?

    <p>public</p> Signup and view all the answers

    More Like This

    Discover Kotlin
    5 questions

    Discover Kotlin

    AffableUvarovite avatar
    AffableUvarovite
    Kotlin
    6 questions

    Kotlin

    ZippyMossAgate9361 avatar
    ZippyMossAgate9361
    Kotlin's Classes and Objects Flashcards
    9 questions
    Kotlin Gradle Flashcards
    20 questions
    Use Quizgecko on...
    Browser
    Browser