Last active
August 29, 2015 14:20
-
-
Save agusmakmun/3255042298910fd3f2c5 to your computer and use it in GitHub Desktop.
Soal Check User
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
/* | |
Ini adalah Soal Check User | |
Lihat class utamanya : https://gist.github.com/agusmakmun/7ecaaf3b0caf799a1905 | |
Lihat Pemanggil Outputnya : https://gist.github.com/agusmakmun/a22db6e9a879f03545f8 | |
@author Summon Agus | |
@blog bloggersmart.net | |
*/ | |
Class User { | |
//fields: | |
id | |
password | |
nama | |
admin | |
//constructor: | |
User(id, password) | |
User(id, password, nama, admin) | |
//methods: | |
boolean apakahAdmin() | |
String toString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment