Posts by Natã Marques • 11 points
1 post
-
1
votes1
answer31
viewsQ: Pass parameter to a get method, can it generate an error in C++?
I’m starting to study POO now and it’s a bit weird for me. But I’d like to know if I pass some parameter in a method get, can result in a mistake? Ex: class MostraNum { private: int x; public: int…