Table Of Contents

Establishing Inheritance Relationships Within a Project

Last Modified: January 24, 2019

Inheriting code from a parent class enables you to avoid writing redundant code by reusing the fields and methods the parent class defines. You can override methods the parent class defines with methods on the child class member list to handle requirements specific to the child class.

There must be two classes in your project before you can create an inheritance relationship. If your project contains only one class, the class can only inherit from the G object class which provides inheritance for all classes in G Dataflow.

Complete the following steps to set a child class to inherit fields and methods from a parent class.

  1. Open the child class G Type document.
  2. On the Document tab, choose the parent class from the Parent drop-down menu under the Inheritance section.
  3. Save the G Type document to apply the inheritance setting.

Recently Viewed Topics