Construtor primário de Kotlin
class Person(val firstName: String, var age: Int) {
// class body
}
SAMER SAEID
class Person(val firstName: String, var age: Int) {
// class body
}
class Log {
constructor(data: String) {
// some code
}
constructor(data: String, numberOfData: Int) {
// some code
}
}