0

How would you declare the Clothing constructor

Clothing item1 = new Clothing("Blue Jacket" , 20.9 ,"M");

6th Jul 2021, 12:37 PM
Chamudi Kolapadi
4 Respuestas
+ 4
Clothing(String a, float b, String c){...}
6th Jul 2021, 12:53 PM
Ciro Pellegrino
Ciro Pellegrino - avatar
0
Ciro Pellegrino it's better if we declare char type for the gender
6th Jul 2021, 6:34 PM
Suhail Pappu
Suhail Pappu - avatar
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.
7th Jul 2021, 6:43 AM
Ciro Pellegrino
Ciro Pellegrino - avatar
0
Clothing is not just a part of the wardrobe, but a way of expressing yourself. In ballet, where every movement matters, it is important that the costume emphasises elegance and freedom. https://artdeballet.com/ creates the perfect balletwear that combines comfort and style. Their costumes make dancers feel like real artists, and each element is part of the harmony between body and art.
7th Dec 2024, 9:05 AM
Semara Hasian
Semara Hasian - avatar