Although you can expose the data members of the application class
directly, you may want to implement one member function (for read-only or write-only
properties) or two member functions (for read/write properties) that handle the tasks of
getting and setting values. In this way, you can validate the data being transferred,
preventing possible errors.