// Date: 08-04-14 Khu

package Problems1Polymorphic;
// Only to be used for extensions of Problem and Solution.

public class GcdSolution implements Solution
{
    private int gcd;

    public int gcd () {return gcd;}

    protected void set (int gcd)
    {
        assert gcd >= 0 : "precondition";
        this.gcd = gcd;
    }
    
    protected GcdSolution ()
      // If private, GcdProblemQAI should not be able to call this constructor,
      // but it does!
    {
    }
}