+ 1
1. What is the constructor parameter in the code below: (JAVA)
public Puppy(String gender) {ï»ż System.out.println("The respondents gender is :" + gender );ï»ż }
1 Answer
+ 3
The parameter is gender of type String.
public Puppy(String gender) {ï»ż System.out.println("The respondents gender is :" + gender );ï»ż }