User Tools

Site Tools


appunti3s:uno_schema_uml
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


appunti3s:uno_schema_uml [2020/06/08 22:20] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +classe autonoma {{:appunti3s:contocorrente1.zip|ContoCorrente}} (da legare ad un Correntista)
  
 +confrontare il codice sorgente con la seguente immagine 
 +
 +<file c contocorrente.h>
 +
 +#include <cmath>
 +
 +class ContoCorrente
 +   {
 +     public:
 +            ContoCorrente(const float& cifra);   //costruttore
 +
 +            const float& saldo() const;          // il metodo ispettore non deve 
 +                                                 // poter modificare nemmeno tramite backdoor
 +            void versareDenaro(const float& cifra);
 +            void prelevareDenaro(const float& cifra);
 +
 +     private:
 +            float mSaldo;                        // dato membro
 +                                                 // potrebbe essere utile aggiungere 
 +                                                 // il numero del conto
 +   };
 +
 +</file>
 +
 +{{:appunti3s:contocorrente1.png}}
appunti3s/uno_schema_uml.txt · Last modified: 2020/06/08 22:20 by 127.0.0.1