0

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(const int a)const {...}

Does this override

int Parentclass::method1(int a) {...}

correctly?

RTS
  • 57
  • 4

0 Answers0