Open rodolakis opened 4 months ago
https://en.m.wikipedia.org/wiki/Encapsulation_(computer_programming)
On Wed, Feb 28, 2024, 5:20 PM Fanny Rodolakis @.***> wrote:
I use the logic of internal attribute / external method, but skipped the set method rule.
— Reply to this email directly, view it on GitHub https://github.com/BCDA-APS/mdaviz/issues/95, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARMUMFEVXCMSCWPLC6UHZLYV63U7AVCNFSM6AAAAABD65OI5OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DAMBUGQ2DGNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
In mda_folder.py
:
def updateSelectionField(self, new_selection):
self._selection_field = new_selection
is effectively playing the role of what should be self.setSelectionField()
I use the logic of internal attribute / external method, have the get methods implemented, but skipped the
set
method rule.