binibiningtinamoran

TestEmployee.java

Feb 2nd, 2021
741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. public class TestEmployee {
  2.  
  3.     public static void main(String[] args) {
  4.  
  5.         // Part 3
  6.         Name someName = new Name("John","H", "Doe");
  7.         Address someAddress = new Address("123 Sunset Blvd.","Beverly Hills", "CA","99999");
  8.         String socialSecurityNumber = "123-45-6789";
  9.  
  10.         // Part 4
  11.  
  12.         /*
  13.         Create an instance of Employee called johnDoe using the following values:
  14.  
  15.         Name: John H. Doe
  16.  
  17.         Address: 123 Sunset Boulevard, Beverly Hills, CA, 99999
  18.  
  19.         Social Security Number: 123-45-6789
  20.          */
  21.  
  22.         Employee johnDoe = new Employee(someName,someAddress,socialSecurityNumber);
  23.  
  24.         johnDoe.print();
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment