any other method beside setter and getter that will perform the same functionality but better?
===

       class MathOperations{
     public:
     void Message();
     void setSum(int);
     void setSuB(int);
     void setMul(int);
     void setDiv(int);
     void setSqrt(int);
     int getSum();
     int getSub();
     int getMul();
     int getDiv();
     int getSqrt();
    private:
    int sum, subtract, multiply, divide, sqrt;


is there a better way of using setter and getter in a class??? if there's any please give me some examples. im just trying to learn a little bit more about class so im trying to implement my knowledge even though im just a beginner.. i read in a book that is it better to use static methods and use the keyword this but not sure how that works.. any simple advice will be grateful appreciate. 
