forked from JRParreno/activity-refresher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.ts
More file actions
31 lines (27 loc) · 718 Bytes
/
Student.ts
File metadata and controls
31 lines (27 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Person } from "./Person";
export class Student extends Person {
studentId: string;
course: string;
college: string;
constructor(
studentId: string,
course: string,
college: string,
name: string,
age: number,
gender: string,
address: string,
) {
super(name, age, gender, address);
this.studentId = studentId
this.course = course
this.college = college
}
getStudentInfo() {
// Expected format
// Student Id: 2015-XXXX
// Course: BSCPE
// College: CEIT
return `Student ID: ${this.studentId} \nCourse: ${this.course}\nCollege: ${this.college}`;
}
}