package factorymethod type finance struct { department } func newFinance() iDepartment { return &finance{ department: department{ name: "Finance Department", employees: 2, }, } }
© The Algorithms 2021