Mixed up code lines

Report a typo

We created a class with a private property and function. We implemented a function that allows you to access these private elements within the class.
Something happened and all the lines were mixed up. Arrange the lines of code in the correct order.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                privateTaskFunction()
              
                class PrivateTask {
              
                }
              
                println("Private function")
              
                }
              
                }
              
                println(privateTaskProperty)
              
                fun showPrivateElements() {
              
                private val privateTaskProperty: String = "Private property"
              
                private fun privateTaskFunction() {
              
___

Create a free account to access the full topic