Inline static object initialization

In reply to Fitc:

Yes, this is valid per the LRM, but it’s not very flexible. Creating a static class instance will result in every instance of some_component having the same item_1 and item_2. While this may be something that is desired, it is better to have each instance of some_component get the handle for item_1 and item_2 from the config_db(). By doing this, you could assign the same handles to every some_component (similar to a static instantiation), or you have the flexibility to provide different handles.

Also, assigning internal variables directly (item_1.item_type=1) violates the basic rules of object oriented programming in that you should only access internal variables via public methods.