import hierachyTest.*; public class Gamma extends Beta{ private int c1; protected int c2; int c3; public int c4; public static String c0 = "Gamma"; /* Constructors */ public Gamma(){ c1 = -1; c2 = -1; c3 = -1; c4 = -1;} public Gamma(int c1, int c2){ this.c1 = c1; this.c2 = c2; c3 = -1; c4 = -1;} public Gamma(int b1, int b2, int c1, int c2){ super(b1, b2); this.c1 = c1; this.c2 = c2; } public Gamma(int a1, int a2, int b1, int b2, int c1, int c2){ super(a1, a2, b1, b2); this.c1 = c1; this.c2 = c2; } /* Setters & Getters */ public int getC1(){ return c1; } public int getC2(){ return c2; } public int getC3(){ return c3; } public void setC1(int x){ c1 = x; } public void setC2(int x){ c2 = x; } public void setC3(int x){ c3 = x; } /* other methods */ public void show(){ super.show(); System.out.println(c0 + ": " + c1 + " " + c2 + " " + c3 + " " + c4); } public int sum(){ return getA1() + getA2() + getA3() + a4 + getB1() + getB2() + getB3() + b4 + c1 + c2 + c3 + c4; } }