import org.junit.Test class FakeTest { @Test fun `Just run it`() {} } // Your code starts here //sampleStart // Define user here fun main() { // I want User which can be used as follows: // val user = User(0, "") // print( // 0 // print( // // print(user) // User with id $id and email $email, for example "User(id=0," } //sampleEnd
Save Restore Add own tests Switch to main Feedback

Define class User with id (Int) and email (String). Create an instance and read its properties one after another. Define the toString function that displays the name of the class and each property.