In Object-Oriented COBOL, the _____ keyword is used to define a new class.
- CLASS
- DATA
- METHOD
- OBJECT
In Object-Oriented COBOL, the "CLASS" keyword is used to define a new class. It is used to encapsulate data and behavior into a single unit.
Loading...
Related Quiz
- In a COBOL program, you need to store a date of birth. Which data type should you use to ensure compatibility with international date formats?
- Your COBOL program interacts with external devices, and you want to handle errors gracefully without abruptly ending the program. Which statement is suitable for this scenario?
- The _____ clause in COBOL allows you to declare a variable as a subordinate item of another variable.
- _____ is a strategy for handling duplicate records by aggregating data based on a common key.
- When might you use the REDEFINES clause in a COBOL program?