Last active
February 18, 2016 20:43
-
-
Save AdelinGhanaem/530a9bf2a7481589ab64 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
| package com; | |
| /** | |
| * Created by adelin.ghanayem@cayetanogaming.com on 2/16/16. | |
| */ | |
| public final class User { | |
| private final String name; | |
| private final boolean isActive; | |
| private final String userId; | |
| // can be constructed using this constructor ONLY ! | |
| public User(String name, boolean isActive, String userId) { | |
| this.name = name; | |
| this.isActive = isActive; | |
| this.userId = userId; | |
| this.address = address; | |
| } | |
| public String getName() { | |
| return name; | |
| } | |
| public boolean isActive() { | |
| return isActive; | |
| } | |
| public String getUserId() { | |
| return userId; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this.address = adress;should be deleted as well.