Given a class called rectangle with a constructor that takes two doubles as arguments representing the dimensions, which of the following is the correct way to invoke that constructor?
1) Rectangle r = new Rectangle();
2) Rectangle r = new Rectangle(2.0, 3.0);
3) Rectangle r = new Rectangle(2, 3);
4) Rectangle r = Rectangle(2.0, 3.0);