
/**
 * class ABC.
 * 
 * @author CS621
 * @version Fall 2002
 */
public class ABC
{
    // instance variables 
    private int a,b,c;

    /**
     * Constructor for objects of class ABC
     */
    public ABC()
    {
        // initialize instance variables
        a = 0;
        b = 0;
        c = 0;
    }
    // Other methods
    void setA(int newA)
    {
        a = newA;
    }
    void setB(int newB)
    {
        b = newB;
    }
    void setC(int newC)
    {
        c = newC;
    }
    int getA()
    {
        return a;
    }
    int getB()
    {
        return b;
    }
    int getC()
    {
        return c;
    }
    void multiplyAby2()
    {
        a = a*2;
    }
    void multiplyBby3()
    {
        b = b*3;
    }
    void setCtoAplusB()
    {
        c = a + b;
    }
}
