Created
June 26, 2017 08:46
-
-
Save AdelinGhanaem/d445a0d9f5738c11f5ff56492148bbdf 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
| public class Person { | |
| //properties ... | |
| //Telescoping Constructors | |
| public Person(int age) { | |
| this.age = age; | |
| } | |
| public Person(int age, long tall) { | |
| this.age = age; | |
| this.tall = tall; | |
| } | |
| public Person(int age, long tall, String eyesColor) { | |
| this.age = age; | |
| this.tall = tall; | |
| this.eyesColor = eyesColor; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment