dcsimg

Can a private variable be accessed by other instances of the same class?

John Zukowski

Yes. The private keyword restricts which classes can accesss a variable / method, not which instances. Any instance of a class can access the private instance variables of any other instance.