In this exercise you will learn how to write tests for a class that doesn't yet exist. This scenario comes up when you want to give someone an exercise that involves writing classes, fields, methods, etc...
Create an Employee class in the com.abc package.
- firstName
- access modifier: private
- type: String
- getter: getFirstName()
- setter: setFirstName(String firstName)
- lastName
- access modifier: private
- type: String
- getter: getLastName()
- setter: getLastName(String lastName)
The constructor should take in firstName and lastName as arguments and set each field.
- getFullName()
- returns a String
- should return firstName + " " + lastName