Jump to content

Inheritance/Multiple: Difference between revisions

→‎{{header|COBOL}}: Added sugar; revert if necessary.
m (syntax highlighting fixup automation)
imported>Acediast
(→‎{{header|COBOL}}: Added sugar; revert if necessary.)
Line 117:
 
=={{header|COBOL}}==
<syntaxhighlight lang="cobol"> CLASS-ID.IDENTIFICATION CameraDIVISION.
CLASS-ID. Camera.
*> ...
END CLASS Camera.
IDENTIFICATION DIVISION.
CLASS-ID. Mobile-Phone.
*> ...
END CLASS Mobile-Phone.
IDENTIFICATION DIVISION.
CLASS-ID. Camera-Phone INHERITS Camera, Mobile-Phone.
CLASS-ID. Camera-Phone
CLASS-ID. Camera-Phone INHERITS FROM Camera, Mobile-Phone.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.