Question: please answer soon as possible . Create a class User The class has 2 attributes private String userName; private String password; Create a constructor that

please answer soon as possible
. Create a class User The class has 2 attributes private String userName; private String password; Create a constructor that get the username/password and assign it User(String userName, String password){ //do something } Create a getUsername method Create setUsername method . . In main create a user, set userName to "bob" and password to "Dog" Print the userName Change the userName to "bobby" Print the userName
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
