Define an interface Resizable with a method void resize(doub…

Define an interface Resizable with a method void resize(double factor);.Write a class Rectangle that: ·         Implements Resizable. ·         Has private fields width and height (double). ·         Has a parameterized constructor Rectangle(double width, double height). ·         Has a copy constructor Rectangle(Rectangle other). ·         Implements resize by multiplying both width and height by factor.