Object implementation

A sample object implementation of the preceding client program is as follows:

package org.admin.hr.employee;
import org.omg.CORBA.*;
public class RegisterImpl extends RegisterPOA {
private String name;
RegisterImple(String name){
this.name = name;
}
public String register() {
return "Employee " + name + ", is now registered”;
}
}

Compile the preceding impl class using the following command:

prompt> javac RegisterImpl.java
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset