-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHuman.java
More file actions
37 lines (27 loc) · 890 Bytes
/
Copy pathHuman.java
File metadata and controls
37 lines (27 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package application;
public class Human {
protected String first_Name;
protected String last_Name;
protected String age;
protected String address;
protected String ID_no;
public Human(String first_Name,String last_Name,String age,String address,String ID_no) {
this.first_Name=first_Name;
this.last_Name=last_Name;
this.age=age;
this.address=address;
this.ID_no=ID_no;
}
public void contents_display() {
System.out.println("Name : "+ this.first_Name+ " "+this.last_Name);
System.out.println("Age : "+this.age);
System.out.println("Address : "+ this.address);
System.out.println("ID_no : "+ this.ID_no);
}
public void Age_modification(String age) {
this.age=age;
}
public void Adress_modification(String Adress) {
this.address=Adress;
}
}