CLASSE
!=
OGGETTO
Classe: file che definisce come l'oggetto si deve comportare o il tipo
Oggetto: istanza di un particolare tipo di Classe
Si vuole definire una classe che rappresenti le automobili.
NB: nuova classe motore
Nome della classe
costruttore
getter
setter
NB: UN PROGETTO COSTRUITO SECONDO OOP DEVE PARTIRE DALLA PROGETTAZIONE DEGLI OGGETTI COINVOLTI, MAI DAL CODICE
/**
* Hi! Im a comment
*/
public class HelloWorld{
public static void main( String[] args ){
//Hi! Im an another comment!
System.out.println( "Hello World" );
}
}
andrea.ghz@gmail.com
andreaghizzoni.github.io
@_ghzz