PROGRAM-ID. BANKMAIN. ENVIRONMENT DIVISION. CONFIGURATION SECTION. REPOSITORY. CLASS Account. DATA DIVISION. WORKING-STORAGE SECTION. 01 an-object USAGE OBJECT REFERENCE Account. PROCEDURE DIVISION. go-now. INVOKE Account "new" RETURNING an-object. INVOKE an-object "displayUI". SET an-object to NULL. GOBACK. |
PROGRAM-ID. BANKMAIN. ENVIRONMENT DIVISION. CONFIGURATION SECTION. REPOSITORY. CLASS Account. DATA DIVISION. WORKING-STORAGE SECTION. 01 an-object USAGE OBJECT REFERENCE Account. PROCEDURE DIVISION. go-now. SET an-object TO Account:>new(). an-object:>displayUI(). SET an-object to NULL. GOBACK. |