2
0
forked from s444420/AL-2020
AL-2020/objects/Rack.js

17 lines
300 B
JavaScript
Raw Normal View History

2020-04-05 17:07:25 +02:00
class Rack{
2020-04-05 17:12:08 +02:00
constructor(noOfShelf, typOfProduct) {
2020-04-05 17:07:25 +02:00
this.noOfShelf = noOfShelf;
}
addShelf(){
this.noOfShelf = this.noOfShelf + 1;
}
isEmpty(){
if (this.noOfShelf === 0){
return true;
}else {
return false;
}
}
}