Skip to content

Instantly share code, notes, and snippets.

@Concers
Last active Jan 12, 2021
Embed
What would you like to do?
class FavoriteAuthor(){
var name: String? = null
var lastname: String? = null
}
fun main(){
val favoriteauthor = FavoriteAuthor()
favoriteauthor.name = "Franz"
favoriteauthor.lastname = "Kafka"
println("Favorite Author ${favoriteauthor.name} ${favoriteauthor.lastname}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment