I have created one firstObject with the help of secondObject. Now I am released that secondObject what will happen to the firstObject.
Here is my code.
SecondObject *secondObject = [[SecondObject alloc]init];
FirstObject *firstObject = [[FirstObject alloc]initWithSecondObject:secondObject];
[secondObject doSomethings];
[firstObject doSomeThings];
[secondObject release];
Unless
secondObjecthas a reference tofirstObjectwhich it releases, nothing will happen tofirstObject.