Docsity

Introduzione all'Object Oriented e all'UML: Ereditarietà e Accesso agli Attributi e Metodi, Cheat Sheet of Object Oriented Programming

Partial preview of the text

Download Introduzione all'Object Oriented e all'UML: Ereditarietà e Accesso agli Attributi e Metodi and more Cheat Sheet Object Oriented Programming in PDF only on Docsity!

all’UML

Nella programmazione OO è possibile creare nuove

classi a partire da classi già esistenti ereditandone le

caratteristiche (attributi/metodi) e aggiungendone di

nuove o ridefinendone alcune

IL PRINCIPIO DELL’ EREDITARIETA’

all‘UML

L’ereditarietà permette di creare una gerarchia di classi :

IL PRINCIPIO DELL’ EREDITARIETA’

Classe Base o Superclasse

Classe Derivata o Sottoclasse

all‘UML

E R E D I T A R I E T À S I N G O L A

all‘UML

E R E D I T A R I E T À M U L T I P L A

all‘UML

all‘UML

all‘UML