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 {
8
8
*/
9
9
public static void main (String [] args ) throws CloneNotSupportedException {
10
10
// 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 );
13
13
Employee e2 = e1 .clone ();
14
14
15
15
16
16
System .out .println (e1 );
17
17
System .out .println (e2 );
18
18
// e2.setEid(3);
19
- e2 .setEname ("Shyam " );
19
+ e2 .setEname ("Raja " );
20
20
e2 .getDep ().setDid (8 );
21
- e2 .getDep ().setDname ("Acc " );
21
+ e2 .getDep ().setDname ("HR " );
22
22
System .out .println (e1 );
23
23
System .out .println (e2 );
24
24
//new Employee().getEid();
You can’t perform that action at this time.
0 commit comments