In Object-Oriented COBOL, what is an object?
- A data structure
- A subroutine in a program
- A variable declaration
- An instance of a class
In Object-Oriented COBOL, an object is an instance of a class. A class defines a blueprint or template for objects, and an object is a concrete realization of that blueprint, encapsulating both data and behavior associated with the class.
Loading...
Related Quiz
- Explain the role of the GIVING clause in COBOL arithmetic statements.
- In COBOL, what are the main categories of data items defined in the Data Division?
- In COBOL, the OCCURS clause can be used to define a group data item with a ________ number of occurrences.
- Explain the purpose of the PREPARE statement in COBOL when dealing with dynamic SQL.
- The OCCURS clause in COBOL is used for defining ________ in the Data Division.