Tuesday, April 11, 2017

OOP concept - where do you put the "getUserMembershipStorageSize()"

I'm learning OOP concept right now and I have this problem.. I have two classes one is the User Class (the user model), and the Photos class.. now, I need a method to get the currentPhotoStorageSize available for the user. because user has only 10 Mb limit size.

how do i design it? I can put the method on the user but sure it's not a good design. please advise.



via Mark Tu-yo

Advertisement