why super.getClass() in a subclass returns subclass name

后端 未结 3 1342
礼貌的吻别
礼貌的吻别 2020-12-20 14:30

I am inside a subclass and when I am trying to find the name of super class, I tried super.getClass() , but it is returning me the name of the subclass only. Why?

3条回答
提交回复
热议问题