Object-Oriented Programming in Encore RPG

Objects are essential to Encore RPG programming, as everything is an object (forms, classes, controls, etc).

In the following topics, you’ll see how easy it is to create your own objects from the classes you define, and to use objects to simplify your coding and increase code reuse.

In This Section

Introduction to Objects in Encore RPG

Provides an introduction to the terms and concepts used in object-oriented programming.

Early and Late Binding

Describes binding, which is performed by the compiler when an object is assigned to an object variable, and the differences between early-bound and late-bound objects.

Shared Members

Describes members that can be used without instances.

Creating and Using Objects

Shows how to create and use instances of classes.

Understanding Classes

Covers object creation and lifetime issues in a step-by-step procedure.

Events

Shows how to declare and use events.

Inheritance

Describes how to define classes that serve as the basis for other classes.

Objects

Describes what objects are and how they are used.

Object-Oriented Programming (Concepts)

Describes what objects are and how they are used.