User
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, "contact@kt.academy")
// print(user.id) // 0
// print(user.email) // marcinmoskala@gmail.com
// print(user) // User with id $id and email $email, for example "User(id=0, email=contact@kt.academy)"
}
//sampleEnd
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.