how to access parent class variable from child if it is overriden it in child class in kotlin

后端 未结 0 1400
执念已碎
执念已碎 2021-01-22 11:53

I want to access animals class color from dogs reference
as I am new to kotlin if something is wrong guide me

fun main() {

    var dogs = Dogs("pug"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题