Suppose I have a class
Should I make an accesor method for int age? Or in any class. Is plainly calling it faster even the tiniest bit? It is a pain to makeCode:class Cat { public: Cat(){}; ~Cat(){}; int age; };
int age private, then create an accesor method, and a set method, and possbily an addto(int add) method.