I’m new to OOP so this may be a dumb question to ask..
When I create a class (C#, ASP.NET) with properties and LARGE NUMBER OF METHODS in it, if i create an object of it just to pass from one layer to another (like from Presentation to Business Logic) isn’t it a overhead to pass the object with large number of methods?
Please explain how this is normally achived??
The overhead of passing an object does not depend on the number of methods.
There is a cost associated with passing around value types with many fields (
structs in C#), maybe you are confused with that.