UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
21 lines (17 loc) 534 B
// Class to represent maintenance staff export default class MaintenanceStaff { staffID: string; name: string; constructor(staffID: string, name: string) { this.staffID = staffID; this.name = name; } // Simulate scheduling maintenance scheduleMaintenance(): void { console.log(`Maintenance scheduled by ${this.name}.`); } // Simulate responding to alerts respondToAlerts(): void { console.log(`Responding to alerts by ${this.name}.`); } }