Bentley StormCAD CONNECT Edition Help

Overriding Inheritance

Overriding inheritance is the software equivalent of cosmetics. A child can override inherited characteristics at any time by specifying a new value for that characteristic. These overriding values do not affect the parent, and are therefore considered local to the child. Local values can also be removed at any time, reverting the characteristic to its inherited state. The child has no choice in the value of his inherited attributes, only in local attributes.

For example, suppose a child has inherited the attribute of blue eyes from his parent. Now the child puts on a pair of green- tinted contact lenses to hide his natural eye color. When the contact lenses are on, we say his natural eye color is overridden locally, and his eye color is green. When the child removes the tinted lenses, his eye color instantly reverts to blue, as inherited from his parent.