1 / 1

Original program (COBOL85)

Identifying reusable assets, Creation of classes. Working library. Generalization, Standardization, Classification. class. Original program (COBOL85). CLASS-ID. ACCOUNT INHERITS BASE. OBJECT. DATA DIVISION. 01 OWNER PIC X(30). 01 BALANCE PIC 9(7)V99.

Download Presentation

Original program (COBOL85)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Identifying reusableassets,Creation of classes Working library Generalization,Standardization, Classification class Original program (COBOL85) CLASS-ID. ACCOUNT INHERITS BASE. OBJECT. DATA DIVISION. 01 OWNER PIC X(30). 01 BALANCE PIC 9(7)V99. 01 MAX-OVERDRAFT PIC 9(7)V99. ... END OBJECT. END CLASS ACCOUNT. Repository class class owner CLASS-ID. ACCOUNT INHERITS BASE. OBJECT. DATA DIVISION. 01 OWNER PIC X(30). 01 BALANCE PIC 9(7)V99. 01 MAX-OVERDRAFT PIC 9(7)V99. ... CLASS-ID. ACCOUNT INHERITS BASE. OBJECT. DATA DIVISION. 01 OWNER PIC X(30). 01 BALANCE PIC 9(7)V99. 01 MAX-OVERDRAFT PIC9(7)V99. ... balance max-overdraft PROCEDURE DIVISION. METHOD-ID. INIT-CHCK-ACC. MOVE ... TO OWNER. MOVE ... TO BALANCE. ... END OBJECT. END CLASS ACCOUNT. PROCEDURE DIVISION. METHOD-ID. INIT-CHCK-ACC. MOVE ... TO OWNER. MOVE ... TO BALANCE. ... END OBJECT. END CLASS ACCOUNT. class CLASS-ID. ACCOUNT INHERITS BASE. OBJECT. DATA DIVISION. 01 OWNER PIC X(30). 01 BALANCE PIC 9(7)V99. 01 MAX-OVERDRAFT PIC 9(7)V99. ... Objectification PROCEDURE DIVISION. METHOD-ID. INIT-CHCK-ACC. MOVE ... TO OWNER. MOVE ... TO BALANCE. ... END OBJECT. END CLASS ACCOUNT. class class CLASS-ID. ACCOUNT INHERITS BASE. OBJECT. DATA DIVISION. 01 OWNER PIC X(30). 01 BALANCE PIC 9(7)V99. 01 MAX-OVERDRAFT PIC 9(7)V99. ... CLASS-ID. ACCOUNT INHERITS BASE. OBJECT. DATA DIVISION. 01 OWNER PIC X(30). 01 BALANCE PIC 9(7)V99. 01 MAX-OVERDRAFT PIC 9(7)V99. ... PROCEDURE DIVISION. METHOD-ID. INIT-CHCK-ACC. MOVE ... TO OWNER. MOVE ... TO BALANCE. ... END OBJECT. END CLASS ACCOUNT. 01 account-object PROCEDURE DIVISION. METHOD-ID. INIT-CHCK-ACC. MOVE ... TO OWNER. MOVE ... TO BALANCE. ... END OBJECT. END CLASS ACCOUNT. USAGE OBJECT REFERENCE Object-oriented program (OOCOBOL)

More Related