Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samvel melikyan artemovich #600

Open
wants to merge 9 commits into
base: Melikyan_Samvel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added golang/LAB4/LAB4.go.txt
Empty file.
88 changes: 87 additions & 1 deletion golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,91 @@ package main
import "fmt"

func main() {
fmt.Println("Hello world")
fmt.Println("Samvel_Melikyan_Artemovich")
}

package main

import "fmt"
import (
"fmt"

"isuct.ru/informatics2022/laba4ab"
)

func main() {
fmt.Println("Samvel_Melikyan_Artemovich")
laba4ab.Readylaba4ab()
}

package main

import "fmt"
import (
"fmt"

"isuct.ru/informatics2022/laba4ab"
)

func main() {
fmt.Println("Melikyan Samvel")
laba4ab.Readylaba4ab()
}

using System;

public struct Employee
{
private string name;
private DateTime hireDate;
private string position;

public Employee(string name, DateTime hireDate, string position)
{
this.name = name;
this.hireDate = hireDate;
this.position = position;
}

public string GetName()
{
return name;
}

public void SetName(string name)
{
this.name = name;
}

public DateTime GetHireDate()
{
return hireDate;
}

public void SetHireDate(DateTime hireDate)
{
this.hireDate = hireDate;
}

public string GetPosition()
{
return position;
}

public void SetPosition(string position)
{
this.position = position;
}
}
public class Program
{
public static void Main(string[] args)
{
Employee employee = new Employee("Иван Иванов", new DateTime(2020, 5, 1), "Менеджер");

Console.WriteLine($"Имя: {employee.GetName()}, Дата приема: {employee.GetHireDate().ToShortDateString()}, Должность: {employee.GetPosition()}");

employee.SetPosition("Старший менеджер");
Console.WriteLine($"Обновленная должность: {employee.GetPosition()}");
}
}