In recent years , COBOL has been extended to allow object-oriented programming , user-defined functions , and user-defined data types .
Additionally , the introduction of OO-COBOL has added support for object-oriented code as well as user-defined functions and user-defined data types to COBOL 's repertoire .