Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

X 3.1.2.2 Inheritance




X Every method available on instances of a class is also available on
X instances of any subclass directly or indirectly derived from it. A
X subclass can introduce new methods that do not exist in the parent (or
X ancestor) class or can override a method from the parent class. When a
X subclass overrides an existing method from the parent class, it defines a
X new implementation for that method, which replaces the inherited
X implementation.


X The instance data of class-name-1 is a copy of the instance data from
X class-name-2 together with the data declared in the Working-Storage
X Section of class-name-1. Note however, instance data is always private to
X the class that introduces it.


X The semantics of inheritance are defined by the IBM SOM. All classes must
X be derived directly or indirectly from the SOMObject class. All
X metaclasses must be derived directly or indirectly from SOMClass.

Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.