.. (לתיקייה המכילה) | ||
Is the friendship relation in the first section (ProfesorImpl) is symmetric? | |
No. p1.addFriend(p2) means p1 becomes a friend of p2, but not the other way around |
In the method favoritesByRating, should we sort by the rate of the Profesor, or by the average rate of the casa? | |
Sort by the average rate of the casa |
In methods returning a collection (such as registeredProfesores, favorites, getFriends) should we return a deep copy? | |
No, just copy the collection without copying the objects it contain (shallow copy). |