Jan. 16, 2019
5:43 p.m.
Petr, Since you seem to want to add this (these) extra instance variable(s) in the context of some kind of persistence (objects being retrieved/created from/to some kind of database), perhaps subclassing all your objects from a PersistentObject class (that inherits from Object) would be the simplest solution.