Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- Practicing Classes 0:40
- Practice Creating a Class 1 objective
- Creating a Class Solution
- Practice Writing a Constructor Method 1 objective
- Writing a Constructor Method Solution
- Practice Instantiating an Object 1 objective
- Instantiating an Object Solution
- Practice Adding Methods 2 objectives
- Adding Methods Solution
Instruction
Writing a Constructor Method Solution
Solution
In this second code challenge, Practice Writing a Constructor Method, you were asked to continue building out the User class by adding a constructor method inside. You will also given a number of properties to include in the constructor method. Each of the properties was supposed to be set to the corresponding parameter.
Remember, constructor methods must be started with the ...