Question: if the following were all declared in the same class, Rectangle, which would be considered the no-arg constructor? (1) public Rect (int len, int width)

if the following were all declared in the same class, Rectangle, which would be considered the no-arg constructor? (1) public Rect (int len, int width) {...} (2) public Rect(double len, double width) {...} (3) public Rect() {...} (1) O (2) O (3) O None of them, the Java compiler would furnish the default compiler.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!