+ 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