To complete the implementation of the server object code, we must derive from the AccountPOA and AccountManagerPOA classes, provide implementations of the interfaces' methods, and implement the server's main routine.You then use the idl2cpp compiler to generate stub routines and servant code compliant with the IDL specification. The stub routines are used by your client program to invoke operations on an object. You use the servant code, along with code you write, to create a server that implements the object.The sample below shows the contents of the Bank.idl file for the bank_agent example. The Account interface provides a single member function for obtaining the current balance. The AccountManager interface creates an account for the user if one does not already exist.module Bank{
interface Account {
float balance();
};
interface AccountManager {
Account open(in string name);
};
};The interface specification you create in IDL is used by VisiBroker's idl2cpp to generate C++ stub routines for the client program, and skeleton code for the object implementation.Because the Bank.idl file requires no special handling, you can compile the file with the following command.