0
what if i declare a parameter inside constructor which has private access specifier, would parameter also be private?
class myclass { private: myclass(int m){} };
1 Antwort
+ 4
parameters are not affected by access specifiers, since you cant directly use a parameter outside of the method you are calling. all parameters are retained within the scope of the method