Advanced PowerBuilder

HomePrevious Lesson: Function Overloading
Next Lesson: Function Overloading Without Using Inheritance

Function Overloading Using Inheritance

If you want to use inheritance to allow function overloading, you must complete two basic tasks:

By performing these steps, you produce two similarly named functions, that share a relationship, and which are organized into a predefined structure, that PowerBuilder understands and can use it when a call to this function name is received. PowerBuilder looks for the appropriate function in the entire object hierarchy, starting from the current level and working towards the top, until it finds the first appropriate version of the function.
HomePrevious Lesson: Function Overloading
Next Lesson: Function Overloading Without Using Inheritance