Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: Eels on Dec 16, 2016



Title: If the following were all declared in the same class, Rectangle, which would be considered the ...
Post by: Eels on Dec 16, 2016
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(){...}

A) (1)
B) (2)
C) (3)
D) None of them, the Java compiler would furnish the default compiler.


Title: Re: If the following were all declared in the same class, Rectangle, which would be considered the ...
Post by: blithering on Dec 18, 2016
Content hidden


Title: Re: If the following were all declared in the same class, Rectangle, which would be considered the ...
Post by: Eels on Jan 31, 2017
This brought my confidence back up, thanks