Q1) Suppose you have a class Square. This class has instance variable, side that is protected and of type double.
Write down the class definition of subclass of Square called FancySquare which has a method called getDiagonal. The getDiagonal method gets no arguments but returns the value of side multiplied by the square root of two.