Moving from class diagram to dialog box
I have a class diagram ("Client") with some private and public attributes as well as some operations. Now I want to simulate a dialog (GUI) for editing this client. The window represents the Customer class and some of the dropdowns and checkboxes represent attributes. Operations ("save", "update") are represented by buttons.
Design Question: Am I designing my GUI dialog to only edit public attributes, or to edit private attributes?
(This is a purely object oriented design question, no implementation.)
a source to share
The GUI should only interact with the class using public methods , not attributes and never private members.
It is generally a good idea to separate the GUI from the model. The Model-View-Controller design pattern is a common, tried-and-true approach.
a source to share