Commit eb46a182 authored by kocarpr's avatar kocarpr
Browse files

1.0

parents
No related merge requests found
Pipeline #1186 failed with stages
Showing with 36 additions and 0 deletions
+36 -0
Třídy 0 → 100644
// Class1
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApp2
{
class Class1
{
public string text;
public string Pozdrav(string jmeno)
{
return String.Format("{0} {1}", text, jmeno);
}
}
}
//Program.cs
using System;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
Class1 zdravic;
zdravic = new Class1();
zdravic.text = "Zdar";
Console.WriteLine(zdravic.Pozdrav("Standa"));
Console.WriteLine(zdravic.Pozdrav("Lojza"));
zdravic.text = "Cus pic";
Console.WriteLine(zdravic.Pozdrav("Fanda"));
Console.ReadKey();
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment