a) Suppose you have a class Square. This class has an instance variable, side that is protected and of kind double.
Write down the class definition of the subclass of Square known as Fancy Square which has a method known as getDiagonal. The getDiagonal method obtains no arguments however returns the value of side multiplied by the square root of two.