Home Help Center

Constructor and Default-Parameter


I'm a beginner in using ICE. Here a little code snippet from my class:

class Bank
Bank(const string bankname, int contextKey = -1);

int readFromDB(int contextKey = -1);

How can I create an Ice-Definition, which contains a Constructor and a default parameter within the function call.



  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Slice does not support default parameters.

    Sice does also not have constructors. Constructors are an implementation detail, and do not belong into a specification language.
Sign In or Register to comment.