- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAggregation.java
More file actions
Latest commit
22 lines (20 loc) · 532 Bytes
/
Copy pathAggregation.java
File metadata and controls
22 lines (20 loc) · 532 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
packagecom.company;
classEmp{
intid;
Stringname;
Stringaddress;
publicEmp(intid, Stringname, Stringaddress) {
this.id = id;
this.name = name;
this.address = address;
}
publicvoidprintdetail() {
System.out.println("This id is : "+id +" this name is : "+name+" and address is :"+address);
}
}
publicclassAggregation {
publicstaticvoidmain(String[] args) {
Empe1=newEmp(12,"rahul","balai");
e1.printdetail();
}
}