Add project files

This commit is contained in:
2025-12-09 14:33:11 +01:00
parent 5c2b8691ca
commit c4468ee686
5 changed files with 83 additions and 0 deletions

31
ConsoleApp1/System.cs Normal file
View File

@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
public class System : ISystem
{
private string name;
private string version;
private string sn;
public System(string name, string version, string sn)
{
this.name = name;
this.version = version;
this.sn = sn;
}
public string Name => this.name;
public string Version => this.version;
public string SN => this.sn;
public override string ToString()
{
return $"Name: {this.name}\nVersion: {this.version}";
}
}
}