using System;
class A
{
static void WriteHello(string someName)
{
Console.WriteLine("Hello " + someName);
}
static void Main()
{
WriteHello("Jo");
WriteHello("Sam");
WriteHello("You");
Console.ReadLine();
}
}
using System;
class A
{
static void WriteHelloJo()
{
Console.WriteLine("Hello Jo");
}
static void WriteHelloSam()
{
Console.WriteLine("Hello Sam");
}
static void WriteHelloYou()
{
Console.WriteLine("Hello You");
}
static void Main()
{
WriteHelloJo();
WriteHelloSam();
WriteHelloYou();
Console.ReadLine();
}
}
using System;
class Person
{
public string firstName;
public string lastName;
public void ShowFullName()
{
Console.WriteLine("Name is " + firstName + " " + lastName);
Console.ReadLine();
}
}
class A
{
public static void Main()
{
Person Petr;
Petr = new Person();
Petr.firstName = "Petr";
Petr.lastName = "Ivanov";
Petr.ShowFullName();
}
}