It is called data inherit in programming.
Store a flag to indicate whether some child property should override parent property is not necessary, and make it a bit not clean.
Dictionary data struct is used to store the property’s name and value pair.
If the child object does not have a specific property in it’s dictionary, then it will inherit from the parent.
If the child object has a specific property in it’s dictionary, then it overrides the parent.