File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
CCVT_Code_Distribute/src/com/rt/cloning Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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();
You can’t perform that action at this time.
0 commit comments