Parent class shadowing
First Claim
1. A computer program product comprising:
- a computer readable medium having computer program logic recorded thereon for shadowing a parent class in an object oriented program with a statically linked object hierarchy, the program product having;
(a) program product means having computer readable means for use with a computer to replace a static class name resolution means in an executable copy of a statically compiled class hierarchy;
(b) program product means having computer readable means for use with a computer to register a new class object to replace one of a plurality of statically linked classes;
(c) program product means having computer readable means for use with a computer to determine a class address of a class based on a class name using said new class name resolution means to reference said new class without relinking any others of said plurality of statically linked classes.
0 Assignments
0 Petitions
Accused Products
Abstract
A method, system and program for supporting a dynamic bind between a derived class and its parent class. A processor provides for the registration of class objects and dynamic binding of derived class objects to their parent class objects based on the registration mechanism. The SOM object model removes static references to class objects by having all the parent class information available at runtime through the parent class object. Thus, when the derived class implementation needs information about the size of the parent class state data structure, the addresses of the parent class method procedures, or access to the parent class method procedure table the appropriate information is retrieved from the parent class object.
-
Citations
5 Claims
-
1. A computer program product comprising:
a computer readable medium having computer program logic recorded thereon for shadowing a parent class in an object oriented program with a statically linked object hierarchy, the program product having; (a) program product means having computer readable means for use with a computer to replace a static class name resolution means in an executable copy of a statically compiled class hierarchy; (b) program product means having computer readable means for use with a computer to register a new class object to replace one of a plurality of statically linked classes; (c) program product means having computer readable means for use with a computer to determine a class address of a class based on a class name using said new class name resolution means to reference said new class without relinking any others of said plurality of statically linked classes. - View Dependent Claims (2, 3, 4, 5)
Specification