UNPKG

@ekamjotsingh.ek/energy-management-system

Version:
30 lines (29 loc) 791 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Class representing a student. */ class Student { /** * Create a Student instance. * @param studentID - Unique identifier for the student. * @param name - Name of the student. */ constructor(studentID, name) { this.studentID = studentID; this.name = name; } /** * Simulate viewing personal energy usage. */ viewPersonalUsage() { console.log(`Student ${this.name} is viewing personal energy usage.`); } /** * Simulate participating in energy-saving programs. */ participateInPrograms() { console.log(`Student ${this.name} is participating in energy-saving programs.`); } } exports.default = Student;