Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


How to write an interface implementation

To write an interface implementation:

In short, there is little difference from implementing any concrete class based on an abstract base.

Example

The following example declares an implementation of the CExampleInterfaceDefinition interface.

class CExampleIntImplementation : public CExampleInterfaceDefinition
    {
public:
    // Two-phase constructor
    static CExampleIntImplementation* NewL();
    // Destructor
    ~CExampleIntImplementation();
    // Implement CExampleInterfaceDefinition 
    void DoMethodL();

private:
    void ConstructL();
    };