1. What is the constructor parameter in the code below: (JAVA) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

1. What is the constructor parameter in the code below: (JAVA)

public Puppy(String gender) { System.out.println("The respondents gender is :" + gender ); }

25th Dec 2021, 6:05 AM
Romela Cathrille Mijares Zabala
Romela Cathrille Mijares Zabala - avatar
1 Answer
+ 3
The parameter is gender of type String.
25th Dec 2021, 6:12 AM
Anas MS
Anas MS - avatar