Question: Select the methods that are the most reusable from the list below (Select all that apply.): Select one or more: a. // setter for member
Select the methods that are the most reusable from the list below (Select all that apply.): Select one or more: a. // setter for member variable y public void setY(){ Scanner myScanner = new Scanner(System.in); System.out.println("Enter a number:"); y myScanner.nextInt(); b. W setter for member variable y public void sety (int iny){ y = iny: > C public void toString(){ System.out.println("X = "+X+ ", Y = "+y); > d public String toString() return "X = "+x+", Y = "+y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
