Created
October 20, 2013 10:52
-
-
Save pbrewczynski/7068010 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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