25 lines
413 B
D
25 lines
413 B
D
module manager;
|
|
|
|
import employee;
|
|
import std.stdio : writeln;
|
|
|
|
class Manager : Employee
|
|
{
|
|
private:
|
|
string name;
|
|
int empId;
|
|
string position;
|
|
public:
|
|
this(int empId, string name, string position)
|
|
{
|
|
this.empId = empId;
|
|
this.name = name;
|
|
this.position = position;
|
|
}
|
|
|
|
override void showEmployDetails()
|
|
{
|
|
writeln(empId, " ", name, " ", position);
|
|
}
|
|
}
|