interface G { fun foo(t : T) : T } class GC() : G { override fun foo(t: T): T { TODO("not implemented") //To change body of created functions use File | Settings | File Templates. } }