diff --git a/Auto.cs b/Auto.cs
new file mode 100644
index 0000000..07dee47
--- /dev/null
+++ b/Auto.cs
@@ -0,0 +1,26 @@
+namespace oggetti_1;
+
+class Auto {
+ readonly int cilindrata;
+ readonly string targa;
+ readonly double peso;
+ readonly double volume;
+ readonly string marca;
+
+ public Auto(int p_cilindrata, string p_targa, double p_peso, double p_volume, string p_marca) {
+ this.cilindrata = p_cilindrata;
+ this.targa = p_targa;
+ this.peso = p_peso;
+ this.volume = p_volume;
+ this.marca = p_marca;
+ }
+
+ public void Stampa() {
+ Console.WriteLine($"Cilindrata: {this.cilindrata}");
+ Console.WriteLine($"Targa: {this.targa}");
+ Console.WriteLine($"Peso: {this.peso}");
+ Console.WriteLine($"Volume: {this.volume}");
+ Console.WriteLine($"Marca: {this.marca}");
+ }
+
+}
\ No newline at end of file
diff --git a/Grafica.cs b/Grafica.cs
deleted file mode 100644
index 87e3194..0000000
--- a/Grafica.cs
+++ /dev/null
@@ -1,5 +0,0 @@
-namespace oggetti_1;
-
-class Grafica {
-
-}
\ No newline at end of file
diff --git a/Program.cs b/Program.cs
index 46eaa18..4d88f5f 100644
--- a/Program.cs
+++ b/Program.cs
@@ -2,8 +2,11 @@
class Program
{
- static void Main(string[] args)
- {
- Console.WriteLine("Hello, World!");
+ static void Main(string[] args) {
+ Auto auto = new Auto(3600, "DV643RH", 2547.3, 8472, "Ford");
+ Auto auto2 = new Auto(2400, "AB482GT", 2345.542, 4325, "FIAT");
+
+ auto.Stampa();
+ auto2.Stampa();
}
}
diff --git a/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs
new file mode 100644
index 0000000..9e76325
--- /dev/null
+++ b/obj/Debug/net9.0/.NETCoreApp,Version=v9.0.AssemblyAttributes.cs
@@ -0,0 +1,4 @@
+//
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
diff --git a/obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs b/obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs
new file mode 100644
index 0000000..bdf8ee2
--- /dev/null
+++ b/obj/Debug/net9.0/oggetti_1.AssemblyInfo.cs
@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("oggetti_1")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2491ea45d236ee677dca113d65a3cbfa7f42fa4a")]
+[assembly: System.Reflection.AssemblyProductAttribute("oggetti_1")]
+[assembly: System.Reflection.AssemblyTitleAttribute("oggetti_1")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// Generated by the MSBuild WriteCodeFragment class.
+
diff --git a/obj/Debug/net9.0/oggetti_1.AssemblyInfoInputs.cache b/obj/Debug/net9.0/oggetti_1.AssemblyInfoInputs.cache
new file mode 100644
index 0000000..880aab9
--- /dev/null
+++ b/obj/Debug/net9.0/oggetti_1.AssemblyInfoInputs.cache
@@ -0,0 +1 @@
+4733b9c6edd51ecb0171ae4b6be6f468f05027dc26b187ba771da8d0a6e7486f
diff --git a/obj/Debug/net9.0/oggetti_1.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net9.0/oggetti_1.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
index 0000000..c207adf
--- /dev/null
+++ b/obj/Debug/net9.0/oggetti_1.GeneratedMSBuildEditorConfig.editorconfig
@@ -0,0 +1,15 @@
+is_global = true
+build_property.TargetFramework = net9.0
+build_property.TargetPlatformMinVersion =
+build_property.UsingMicrosoftNETSdkWeb =
+build_property.ProjectTypeGuids =
+build_property.InvariantGlobalization =
+build_property.PlatformNeutralAssembly =
+build_property.EnforceExtendedAnalyzerRules =
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = oggetti_1
+build_property.ProjectDir = /home/Verde/git/oggetti_1/
+build_property.EnableComHosting =
+build_property.EnableGeneratedComInterfaceComImportInterop =
+build_property.EffectiveAnalysisLevelStyle = 9.0
+build_property.EnableCodeStyleSeverity =
diff --git a/obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs b/obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs
new file mode 100644
index 0000000..8578f3d
--- /dev/null
+++ b/obj/Debug/net9.0/oggetti_1.GlobalUsings.g.cs
@@ -0,0 +1,8 @@
+//
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.IO;
+global using global::System.Linq;
+global using global::System.Net.Http;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;
diff --git a/obj/Debug/net9.0/oggetti_1.assets.cache b/obj/Debug/net9.0/oggetti_1.assets.cache
new file mode 100644
index 0000000..e351d27
Binary files /dev/null and b/obj/Debug/net9.0/oggetti_1.assets.cache differ