Write a class Labrador that inherits from a class Dog:
open class Dog(val name: String, val color: String, val weight: Int) {
fun printInfo() {
println("The dog's name is $name, his color is $color and his weight is $weight")
}
}
The Dog class has one method called printInfo(), which prints The dog's name is $name, his color is $color and his weight is $weight.