I'm writing an accounting module for our solution, using the great advice from here: http://homepages.tcp.co.uk/~m-wigley/gc_wp_ded.html
I want to be sure that my PostEntry() module is the ONLY module in the whole solution that has write access to my posting table. Further to this, I would like to ensure that only my EnterJournal() method can call my PostEntry(), and no others.
Apart from remembering not to write any other functions that try and write to this table, is there any other way to restrict write access to this table to just this one method? I'm new to OO programming, is this something to do with inheritance, exposure, etc?
Thanks in advance