Does adding const affect overriding

后端 未结 0 1030
旧时难觅i
旧时难觅i 2021-01-29 03:52

Suppose I have a method1 in the parent class and I want to override it in a subclass. Does adding const affect the overriding? For example,

int Subclass::method1(         


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