logo

Crowdly

Browser

Add to Chrome

Quel sera le résultat affiché à la console pour ce code Kotlin ? class Personn...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Quel sera le résultat affiché à la console pour ce code Kotlin ?

class Personne(val nom: String, var age: Int)

fun main() {

val p = Personne("Alice", 30)

p.age = 31

println("${p.nom} a ${p.age} ans")

}
More questions like this

Want instant access to all verified answers on moodle.iut-tlse3.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome