lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

I´ve looking for this subject in the internet, did some tests but not found an answer.

It´s possible for a class declared in Lunar to inherit methods from another class?

Example (pseudo code):

class Control
{
public:

    void setPosition(int x, int y);
};

class Label: public Control
{
public:

    void setText(const char* text);
};


Label is derived from Control, so it should access the method setPosition from Control class.


Thanks

Jose