0
How would you declare the Clothing constructor
Clothing item1 = new Clothing("Blue Jacket" , 20.9 ,"M");
3 ответов
+ 4
Clothing(String a, float b, String c){...}
0
Ciro Pellegrino it's better if we declare char type for the gender
0
Suhail Pappu "M" is a String, 'M' is a char. Asking for a char where client use a String ... Error!
I don't make assumptions, I stick to the track.