Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kocarpr
třídy
Commits
eb46a182
Commit
eb46a182
authored
4 years ago
by
kocarpr
Browse files
Options
Download
Email Patches
Plain Diff
1.0
parents
master
No related merge requests found
Pipeline
#1186
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Třídy
+36
-0
Třídy
with
36 additions
and
0 deletions
+36
-0
Třídy
0 → 100644
+
36
-
0
View file @
eb46a182
// 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();
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets