Last active
August 29, 2015 14:25
-
-
Save Winwardo/afccfcd1603a893efa1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Telescoping constructor | |
var employee = Immutable(new Employee("John", "01234 56432", "07922344500", "53 Oakland Road", "Devon", "UK")); | |
// With builder | |
var employee = new EmployeeBuilder() | |
.name("John") | |
.phone("01234 56432") | |
.mobile("07922344500") | |
.addresslineone("53 Oakland Road") | |
.county("Devon") | |
.country("UK") | |
.build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment