Suppose I have this class:
I have a Utility class with following methods:
My question is, instead of
String name/int id/Date dob - should we pass whole User object? I have seen some developers always passing the whole object instead of individual values. In such cases syntax is: