Suppose I have an object ClassRoom, in the ClassRoom there are many Student objects (50 objects) with more than 20 properties, many Teacher objects (10 objects) with more then 20. ClassRoom also has some other properties like classNo, seatCapacity, etc.
Is it good to pass a object of ClassRoom object as an argument to a method. Suppose I need only 3-4 properties of ClassRoom and 1-2 properties of each Students. If it is bad, what is the cost of passing a heavy object.