Search code examples
classfunctional-programmingcentura

What is functional class in Centura?


I am a new programmer in Centura, I am familiar with the concept of class from C++ or JAVA but I am little bit confused with functional classes in context of windows. Can somebody explain me, what is it and how its works? Thank you


Solution

  • Functional class is used to,

    1.Create user defined variables.

    2.Define behavior(functions) that is shared by more than one window class.

    Functional class can be created by right clicking the Classes folder of Teamdeveloper and then select new functional class from the popup menu.

    enter image description here

    A functional class can be,

    1. Base class of another functional class.

    2. Base class of a window class.

    3. Derived from another functional class, but not from a window class

    If behavior needs to be shared by more than one window type, you can place the behavior in a functional class and then derive window classes from that functional class. The derived classes inherit the common behavior as well as behavior appropriate to their window type.