Hey guys,
I have a question for you.
Lets say you've made program containing to modules A and B. There is an object of type X that is known in both modules. X has 4 methods:
> P and Q that should only be called from the code inside module A.
> R and S that should only be called from the code inside module B.
How would you fix this? Just make all methods public and write proper documentation on how to use them, or make a strict separation by using interfaces or something else?
I feel that creating a strict separation makes my program overly complex, while just making everything public feels dirty.
Any ideas?
Thanks
Bookmarks