The Add Property wizard helps you add property code to a class file.

This wizard appears when you select Source > Add Property.

The following controls are available:

Property name (Required) Specifies the name of the property. The name must begin with a letter; spaces and most non-alphanumeric characters are not allowed.
Access modifier Specifies the access mode that applies to the property, GET accessor, or SET accessor:
  • Public - The property can be accessed from any code that has access to the class instance.
  • Package-Protected - The property can be accessed from within the class, any class within its package, and from within any subclass that inherits the class.
  • Protected - The property can be accessed from the defining class or a subclass.
  • Package-Private - The property can be accessed from within the class and any class within its package.
  • Private - The property can be accessed by the defining class. An instance can access a private property of another instance if both instances are of the same class.

The access modifier for an accessor cannot be less restrictive than the modifier for the property itself.

Note: The Package-Protected and Package-Private modifiers are only available if the class is inside a package.
Static If checked, specifies that the property is static. A static property is accessible by every instance of the class and (if public) by clients of the class without the need to create an instance of the class.

A static property cannot be abstract.

Abstract (Enabled only if the current class is abstract) If checked, specifies that the property is abstract and cannot be instantiated. An abstract property is designed to be inherited and to be implemented by the inheriting class. Therefore, an abstract property cannot be private, nor can it be static.
Type Specifies the property's data type.
Extent If checked, specifies that the property is an extent (array) value and enables the adjacent field to the right where you enter the number of elements in the extent.
Initial value If checked, enables the adjacent field to the right where you enter the initial value of the property.
NO-UNDO If checked, adds the NO-UNDO attribute to the property declaration.
Readable If checked, specifies that the GET accessor is readable.
Writable If checked, specifies that the SET accessor is writable.
Insert implementation If checked, adds an implementation stub for the accessor to the generated code.
Insertion position Determines where the property code is inserted in the source file.