Last active
October 15, 2018 12:24
-
-
Save rajeevshukla/ffe4131d3a1e8a7e4e431d7dc1a2317d to your computer and use it in GitHub Desktop.
Employee class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Employee { | |
private int id; | |
private String firstName; | |
private String lastName; | |
private int age; | |
private String email; | |
private float salary; | |
//considering an employee can have multiple cars | |
private List<Car> cars; | |
//getters & setters omitted | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment