Private data fields are the most restricted, and may not be read nor modified by outside functions and may only accessed or modified by methods defined on the class. Private fields are specified by enclosing their definitions between the keywords Private and EndPrivate. The following definition makes the Area field private in class Circle:
DEFINE CLASS Circle
double CenterX
double CenterY
ReadOnly
double Radius
EndReadOnly
Private
double Area
EndPrivate
ENDDEFINE
An attempt to print, or use a private field in an expression anywhere except within a method belonging to the fields class will result in an error.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.