I have this two class, Triangle and Equilateral, the class Equilateral inheritance from Triangle. Since an equilateral triangle have all side the same, it is possible to take just one double value from the class Triangle and only one getMethod? Thanks
public class Triangle 
{
    //Private
    private double sideA, sideB, sideC;
 
    public Triangle(double a, double b,double c)
    {
        sideA = a;
        sideB = b;
        sideC = c;
    }
 
 
    //Return
 
    public double getSideA()
    {
        return sideA;
    }
        public double getSideB()
    {
        return sideB;
    }
        public double getSideC()
    {
        return sideC;
    }
}
public class Equilateral extends Triangle
{
    public Equilateral(int a,int b, int c)
    {
        super(a,b,c);    
    }
}