Skip to content

Instantly share code, notes, and snippets.

@luissilvazup
Last active June 17, 2020 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luissilvazup/52deb80714d4da3735598fe8163f561a to your computer and use it in GitHub Desktop.
Save luissilvazup/52deb80714d4da3735598fe8163f561a to your computer and use it in GitHub Desktop.
SRP Solution Part 2
public class S_SingleResponsabilitySolution {
@Getter
@Setter
private static class User {
private String email;
private String password;
}
@Getter
@Setter
private static class Employee extends User {
private Long id;
private String name;
private double salary;
private String jobTitle;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment