-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathlambda-classes.js
More file actions
57 lines (52 loc) · 1.52 KB
/
lambda-classes.js
File metadata and controls
57 lines (52 loc) · 1.52 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// CODE here for your Lambda Classes
class person {
contructor(prop) {
this.name = prop.name;
this.age = prop.age;
this.location = prop.location;
}
phrase() {
console.log(`Hello, my ${this.name} I am from ${this.location}`);
}
}
class student extends person {
contructor(prop){
super(prop);
this.previousBackground = prop.previousBackground;
this.className = prop.className;
this.favoriteSubjects = prop.favoriteSubject;
}
listSubject(){
this.favoriteSubjects.foreach(element => console.log(element));
}
PRAssigment(subject){
console.log(`${this.name} has submited a pr for ${subject}`);
}
sprintChallenge(subject){
console.log ( `${this.name} has begun sprint challenge on ${subject}`)
}
}
class instructor extends person{
constructor(prop){
super(prop);
this. specialty = prop.specialty;
this. favLanguage = prop.favLanguage;
this.catchPhrase = prop.catchPhrase;
}
demo(subject){
console.log(`today we are learning about ${subject}`)
}
grade(student,subject){
console.log(`${student.name} recieves a perfect score on ${subject}`)
}
}
class ProjectManger extends instructor {
contructor(prop){
super(prop);
this.gradeClassName = prop.gradeClassName;
this.favoriteinstructor = prop.favoriteinstructor;
}
standUp(slack){
console.log(`${this.name} annouces to ${student.name}'s code on ${subject}`)
}
}