It is assigning integer values yes. However, these integer values are private members (variables) of two different objects. Here it is not an object accessing the private variable but a class accessing the private variables of instances of that same class.
Originally posted by Vijay R.:
Where is one House object is accessing the private variable of the other House object? Is it in this line:
>> houseB.numberOfChairs = houseA.numberOfChairs;
But we are simply assigning integer values, is an object accessing another object?