Guest User

Untitled

a guest
Oct 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. public class Employee
  2. {
  3. /**
  4. * Employee's name
  5. * @deprecated New version uses firstName and lastName fields.
  6. */
  7. @Deprecated
  8. String name;
  9. String firstName;
  10. String lastName;
  11. public static void main(String[] args)
  12. {
  13. Employee emp = new Employee();
  14. emp.name = "John Doe";
  15. }
  16. }
Add Comment
Please, Sign In to add comment