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?