Skip to content

Commit 70cd686

Browse files
anand mohananand mohan
authored andcommitted
java programming
1 parent 9c56fd8 commit 70cd686

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

CCVT_Code_Distribute/src/com/rt/cloning/Department.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public class Department implements Cloneable{
66
private String dname;
77
public int getDid() {
88
return did;
9+
910
}
1011
public void setDid(int did) {
1112
this.did = did;

CCVT_Code_Distribute/src/com/rt/cloning/Employee.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public Employee(int eid, String ename) {
77
super();
88
this.eid = eid;
99
this.ename = ename;
10+
1011
}
1112
public int getEid() {
1213
return eid;

CCVT_Code_Distribute/src/com/rt/cloning/TestClass.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class TestClass {
99
public static void main(String[] args) throws CloneNotSupportedException {
1010
// TODO Auto-generated method stub
1111
Department d1=new Department(7, "HR");
12+
1213
Employee e1=new Employee(1, "Ram",d1);
1314
Employee e2= e1.clone();
1415

0 commit comments

Comments
 (0)