8000 Mandir vahi banayenge · ravitomar7/Java_Programming_CCVT@03597a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03597a3

Browse files
Yash SaraswatYash Saraswat
authored andcommitted
Mandir vahi banayenge
1 parent 9c56fd8 commit 03597a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ public class TestClass {
88
*/
99
public static void main(String[] args) throws CloneNotSupportedException {
1010
// TODO Auto-generated method stub
11-
Department d1=new Department(7, "HR");
12-
Employee e1=new Employee(1, "Ram",d1);
11+
Department d1=new Department(7, "PR");
12+
Employee e1=new Employee(1, "Yash",d1);
1313
Employee e2= e1.clone();
1414

1515

1616
System.out.println(e1);
1717
System.out.println(e2);
1818
// e2.setEid(3);
19-
e2.setEname("Shyam");
19+
e2.setEname("Raja");
2020
e2.getDep().setDid(8);
21-
e2.getDep().setDname("Acc");
21+
e2.getDep().setDname("HR");
2222
System.out.println(e1);
2323
System.out.println(e2);
2424
//new Employee().getEid();

0 commit comments

Comments
 (0)
0