Home | Previous Lesson: Inheritance Next Lesson: Course 2:: Session 12 :: Page 60 |
PowerBuilder supports inheritance from three objects:
Menus | |
Windows | |
User Objects |
You can inherit an object in one of the two ways:
By selecting 'Inherit' from the Select dialog box, which is brought up when you invoke the relevant object painter. | |
By selecting 'File/Inherit...' from the menu when you are in the relevant object painter. |
When an object is inherited, everything in the ancestor object is passed onto the descendent. If another object is derived from the descendent, the new object inherits everything from the first ancestor, as well as any new definitions defined in its immediate ancestor.
Home | Previous Lesson: Inheritance Next Lesson: Course 2:: Session 12 :: Page 60 |