Prev Up Next
Go backward to Invocation Semantics for IDL Operations
Go up to Top
Go forward to The Object Interface Type

Inheritance of IDL Interfaces

IDL supports inheritance of interfaces. An IDL interface can inherit all the elements of one or more other interfaces.

For example, the following IDL definition illustrates two interfaces, called CheckingAccount and SavingsAccount, that inherit from interface Account:


    module Finance { 
      interface Account { 
        ... 
      }; 
      interface CheckingAccount : Account { 
        readonly attribute overdraftLimit; 
        boolean orderChequeBook (); 
      }; 
      interface SavingsAccount : Account { 
        float calculateInterest (); 
      }; 
    }; 

 

Prev Up Next