摘要 |
FIELD: object-oriented programming, in particular, methods for controlling properties of objects in an applied program. ^ SUBSTANCE: the effect is achieved because properties in one class are associated with another class. In the method, data structure is used, which includes definitions for each property from the second group of properties and at least one static method. The static method is associated with one property from the second group of properties and includes first parameter. The first parameter unambiguously identifies one property. The static method performs association of one property with an object without indication of direct link to aforementioned one property of object. The property is registered during working run to produce unambiguously defined identifier. ^ EFFECT: addition of new functionality to a class without necessity to constantly include that functionality with the class. ^ 5 cl, 6 dwg |