Created
October 12, 2012 13:12
-
-
Save applegateaustin/3879130 to your computer and use it in GitHub Desktop.
KUStudent
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 KUStudent { | |
private String stud_fname; | |
private String stud_lname; | |
private String stud_kuid; | |
private String stud_dpt; | |
public void set_name(String fname, String lname){ | |
stud_fname = fname; | |
stud_lname = lname; | |
} | |
public void set_kuinfo(String kuid, String dpt){ | |
stud_kuid = kuid; | |
stud_dpt = dpt; | |
} | |
public void writeOutput(){ | |
System.out.println("Student: " + stud_fname + " " + stud_lname); | |
System.out.println("KUID: " + stud_kuid); | |
System.out.println("Department " + stud_dpt); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment