Skip to content

Instantly share code, notes, and snippets.

@rajeevshukla
Last active October 15, 2018 12:24
Show Gist options
  • Save rajeevshukla/ffe4131d3a1e8a7e4e431d7dc1a2317d to your computer and use it in GitHub Desktop.
Save rajeevshukla/ffe4131d3a1e8a7e4e431d7dc1a2317d to your computer and use it in GitHub Desktop.
Employee class
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 &amp; setters omitted
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment