Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestEmployee {
- public static void main(String[] args) {
- // Part 3
- Name someName = new Name("John","H", "Doe");
- Address someAddress = new Address("123 Sunset Blvd.","Beverly Hills", "CA","99999");
- String socialSecurityNumber = "123-45-6789";
- // Part 4
- /*
- Create an instance of Employee called johnDoe using the following values:
- Name: John H. Doe
- Address: 123 Sunset Boulevard, Beverly Hills, CA, 99999
- Social Security Number: 123-45-6789
- */
- Employee johnDoe = new Employee(someName,someAddress,socialSecurityNumber);
- johnDoe.print();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment