Skip to content

Instantly share code, notes, and snippets.

@akshanshjain95
Created June 26, 2019 18:20
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 akshanshjain95/46b2bcd55d8e5bcbced1f354092e171e to your computer and use it in GitHub Desktop.
Save akshanshjain95/46b2bcd55d8e5bcbced1f354092e171e to your computer and use it in GitHub Desktop.
import lombok.Builder;
public final class Student extends Person {
private final String rollNumber;
@Builder(builderMethodName = "studentBuilder")
public Student(final String firstName, final String lastName, final String middleName, final String rollNumber) {
super(firstName, lastName, middleName);
this.rollNumber = rollNumber;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment