Skip to content

Instantly share code, notes, and snippets.

@pbrewczynski
Created October 20, 2013 10:52
Show Gist options
  • Save pbrewczynski/7068010 to your computer and use it in GitHub Desktop.
Save pbrewczynski/7068010 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectCompany
{
abstract class Employee
{
private String firstName;
private String secondName;
private String fullName
{
get
{
return firstName + ' ' + secondName;
}
}
private Company company;
private Employee supervisor;
private void setup(String firstName, String secondName, Company company, Employee supervisor)
{
this.firstName = firstName;
this.secondName = secondName;
this.company = company;
this.supervisor = supervisor;
}
public Employee(Company company, Employee supervisor)
{
String firstName, secondName;
Console.WriteLine("Pass the first name of porson to hire");
firstName = Console.ReadLine();
Console.WriteLine("Pass the second name of porson to hire");
secondName = Console.ReadLine();
setup(firstName, secondName, company, supervisor);
}
public Employee (String firstName, String secondName, Company company, Employee supervisor)
{
setup(firstName, secondName, company, supervisor);
}
public void emplyCommandLineInterface () {
}
public void showSupervisor ()
{
Console.Write("Supervisor of " + this.fullName + "is" + this.supervisor.fullName);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment