From 003368f89ad7f21535a21fd54d289cb3ee6306b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zsef=20Fazekas?= Date: Tue, 17 Sep 2024 10:56:03 +0000 Subject: [PATCH] Upload files to "/" --- App.config | 6 ++++++ Koktel.cs | 18 ++++++++++++++++ Koktelok.csproj | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ Martini.cs | 20 ++++++++++++++++++ Program.cs | 22 +++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 App.config create mode 100644 Koktel.cs create mode 100644 Koktelok.csproj create mode 100644 Martini.cs create mode 100644 Program.cs diff --git a/App.config b/App.config new file mode 100644 index 0000000..5754728 --- /dev/null +++ b/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Koktel.cs b/Koktel.cs new file mode 100644 index 0000000..0aa053e --- /dev/null +++ b/Koktel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Koktelok +{ + internal abstract class Koktel + { + public string Nev { get; set; } + public abstract string Keveres(); + public void Hozzavalok() + { + Console.WriteLine($"A {Nev} koktélhoz"); + } + } +} diff --git a/Koktelok.csproj b/Koktelok.csproj new file mode 100644 index 0000000..e398b85 --- /dev/null +++ b/Koktelok.csproj @@ -0,0 +1,56 @@ + + + + + Debug + AnyCPU + {20FDBAE6-43CA-4FB2-BA4F-362D13F1D78B} + Exe + Koktelok + Koktelok + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Martini.cs b/Martini.cs new file mode 100644 index 0000000..af1c600 --- /dev/null +++ b/Martini.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Koktelok +{ + internal class Martini : Koktel + { + public override string Keveres() + { + return "A martinit nem tudom hogyan kell elkészíteni."; + } + public Martini(string Nev) + { + this.Nev = Nev; + } + } +} diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..e309816 --- /dev/null +++ b/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Koktelok +{ + internal class Program + { + static void Main(string[] args) + { + Koktel k1 = new Martini("Martini"); + Koktel k2 = new zoldBeka("Zöld béka"); + + Console.WriteLine(k1.Keveres()); + Console.WriteLine($"A {k1.Nev} undorító"); + Console.WriteLine(k2.Keveres()); + Console.WriteLine($"A {k2.Nev} egész jó"); + } + } +}