I have a program where an object creates another object. However, the second object that gets created needs to be able to access the first. Is this possible? 

EG (pseudocode)

```
class parentObject():
    parentVar = 1
    # Create Child
    x = childObject()

class childObject():
    #Assign Var to the Var of the childs parent
    childVar = parent.parentVar    

>>> x.childVar = 1

```

is there a straitforward way to do this? 

UPDATE: 

I don't want to inheret the class, I need to be able to access the actual object that created it, as each object created from that class has different values.