Explain the concept of abstract classes in Object-Oriented COBOL.

  • Abstract classes are only used for file operations.
  • Abstract classes are those with no attributes.
  • Abstract classes are used for basic arithmetic operations.
  • Abstract classes cannot be instantiated and may have abstract methods.
In Object-Oriented COBOL, an abstract class is a class that cannot be instantiated on its own and may have abstract methods (methods without implementation). Abstract classes serve as a blueprint for other classes, providing common attributes and methods that subclasses must implement. They allow for code reusability and the definition of common behavior across multiple classes.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *