This repository has been archived on 2022-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
patterns/composite/composite/manager.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);
}
}