11.07.2014 Views

Progettazione e Programmazione Orientata agli Oggetti - Computer ...

Progettazione e Programmazione Orientata agli Oggetti - Computer ...

Progettazione e Programmazione Orientata agli Oggetti - Computer ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

UNIVERSITÀ DEGLI STUDI DI PARMA<br />

Dipartimento di Ingegneria dell’Informazione<br />

COMPUTER<br />

ENGINEERING<br />

<strong>Oggetti</strong><br />

• <strong>Oggetti</strong> della stessa classe hanno operazioni<br />

uguali (metodi), ma dati diversi.<br />

• Un metodo può accedere ai dati dell’oggetto<br />

(parte privata del modulo).<br />

• Come si indica al metodo su quale oggetto<br />

agire ?<br />

– Istanza corrente di un oggetto (this o self).<br />

G. Rimassa - <strong>Progettazione</strong> e <strong>Programmazione</strong> <strong>Orientata</strong> <strong>agli</strong> <strong>Oggetti</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!