Suppose if we have the variable value with same union type that time we can access only the member like parent-child relationship like inheritance concept. So the member of the union type will be common to all of the data types which is related to the same variable field. Example: Code: ...