Support Inheritance:
Default value : NO
Properties Abstract and Extends will be disabled when Support Inheritance is NO.To create an Inheritance Parent table (Base table) we need to follow below steps:
- Int64 field
- Field name as InstanceRelationType(Parent table)
- Extends with RelationType.
- Support Inheritance Property to YES
- Support Inheritance Property to YES
- Extends Property to the Parent table
IS and AS keywords are used for Inheritance.
Whereas IS keyword is used whether an object is a subtype of a specified class/Table.
AS keyword for assignments that downcast from a base class variable to a derived class variable.
Abstract versus concrete tables:
Tables in a table inheritance hierarchy can be defined as either abstract or concrete, depending on whether the table property Abstract is set to Yes or No. Records can only be created for concrete table types. Any attempt to create a record and insert it in an abstract table will result in a run-time error. The position of the table in the inheritance hierarchy does not restrict its ability to be defined as abstract.
Whereas IS keyword is used whether an object is a subtype of a specified class/Table.
AS keyword for assignments that downcast from a base class variable to a derived class variable.
Abstract versus concrete tables:
Tables in a table inheritance hierarchy can be defined as either abstract or concrete, depending on whether the table property Abstract is set to Yes or No. Records can only be created for concrete table types. Any attempt to create a record and insert it in an abstract table will result in a run-time error. The position of the table in the inheritance hierarchy does not restrict its ability to be defined as abstract.
(If Abstract property set to YES, we can't create the records in the parent table.)
No comments:
Post a Comment