Guys can someone notice the mistake that l made coz the code is outputting an error.(Kotlin inheritance)
open class Person(age:Int, name:String) init{ println("My name is $name") println("My age is $age") } class MathTeacher(age: Int, name: String ) :Person(age,name){ fun TeachMaths(){ println("I teach at Ntare School.") } } class Footballer(age: Int, name: String):Person(age,name){ fun Playfootball(){ println("I play for Machester United football club.") } } class Programmer(age: Int,name: String):Person(age,name){ fun Program(){ println("I program apps,games,websites and artificial intelligence.") } } fun main(args: Array<String>){ val t1=MathTeacher(44,"Robert") t1.MathTeacher() println() val f1=Footballer(33,"Halland") f1.Footballer() println() val p1=Programmer(16,"Morris") p1.Programmer() println() }