I guess you mean from a different object (or instance), not implementation. Anyway, the correct object oriented solution is to write an accessor method and use, in this case, [bang bam] to access the bam variable. The accessor is in most cases trivial, just:
- (<variable type>)bam
{
return bam;
}
Another way of accessing the variable is to use the -> operator. The . operator (that you used in your code) won't work since Cocoa always uses pointers to objects. That said, never ever use this method, always use accessors.
Hope this helps