Gyakorlás
This commit is contained in:
10
Tombok2/Fuggvenyek/Fuggvenyek.csproj
Normal file
10
Tombok2/Fuggvenyek/Fuggvenyek.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
26
Tombok2/Fuggvenyek/Program.cs
Normal file
26
Tombok2/Fuggvenyek/Program.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
namespace Fuggvenyek
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
|
||||
//Overloading, túlterhelés
|
||||
static void Kiir()
|
||||
{
|
||||
Console.WriteLine("Valami");
|
||||
}
|
||||
|
||||
static void Kiir(string szoveg)
|
||||
{
|
||||
Console.WriteLine(szoveg);
|
||||
}
|
||||
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Hello, World!");
|
||||
Kiir();
|
||||
Kiir("Bármi");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user