






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Una introduzione all'ereditarietà in programmazione orientata agli oggetti (OO) e all'UML (Universal Modeling Language). Il principio dell'ereditarietà consente la creazione di gerarchie di classi, con una classe base o superclasse e una classe derivata o sottoclasse. Gli attributi e i metodi possono essere dichiarati come pubblici, privati o protetti, con differenti livelli di accessibilità.
Typology: Cheat Sheet
1 / 10
This page cannot be seen from the preview
Don't miss anything!







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
L’ereditarietà permette di creare una gerarchia di classi :
Classe Base o Superclasse
Classe Derivata o Sottoclasse
E R E D I T A R I E T À S I N G O L A
E R E D I T A R I E T À M U L T I P L A