From e1d1afa26f773f81b6e04a636e37497d04b2538d Mon Sep 17 00:00:00 2001 From: Vichingo455 Date: Tue, 23 Sep 2025 10:45:07 +0200 Subject: [PATCH] roba --- TerzoProgetto/src/App.java | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/TerzoProgetto/src/App.java b/TerzoProgetto/src/App.java index 0a839f9..7c4af91 100644 --- a/TerzoProgetto/src/App.java +++ b/TerzoProgetto/src/App.java @@ -1,5 +1,26 @@ public class App { public static void main(String[] args) throws Exception { - System.out.println("Hello, World!"); + } } +class Veicolo { + String marca; + int anno; + void descrivi() { + + } +} + +class Automobile extends Veicolo { + int porte; + void descrivi() { + + } +} + +class Moto extends Veicolo { + String manubrio; + void descrivi() { + + } +} \ No newline at end of file