Simply making a private sub public doesn't violate OOP. You are allowed
to extend and republish a published interface and it won't break existing
code. Going the other way could break existing code. In addition, a sub
doesn't return anything, so unless there are byref arguments, no information
about the internal structure and state of the form object can be returned,
making it impossible for violation of encapsulation.
You are right, however I don't like all those public member to do this kind
of things (and I am violating to it as needed).
Cor
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.