Created
June 26, 2019 18:20
-
-
Save akshanshjain95/46b2bcd55d8e5bcbced1f354092e171e to your computer and use it in GitHub Desktop.
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
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