volitelný parametr, C#/Parametr, Visual Studio 2022

This commit is contained in:
Lukáš Kaňka 2023-08-31 23:00:35 +02:00
parent ce64517296
commit b7ad7e658f
4 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -18,7 +18,7 @@ namespace Parametr
}
static void PrintEmployeeDetail(string name, int age, int empid, bool supervisor = false) // <--- toto jsou parametry <--- , supervisor = nadřízený
{
{ // supervizor je volitelný parametr --> vždy se dává na konec
Console.WriteLine($"Name : {name}, Age : {age}, Employee ID : {empid}, IsSupervizer : {supervisor}");
}
}