+ 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 Antwort
+ 3
The parameter is gender of type String.
25th Dec 2021, 6:12 AM
Anas MS
Anas MS - avatar