AL-2020/objects/Rack.js
2020-04-05 17:12:08 +02:00

17 lines
300 B
JavaScript

class Rack{
constructor(noOfShelf, typOfProduct) {
this.noOfShelf = noOfShelf;
}
addShelf(){
this.noOfShelf = this.noOfShelf + 1;
}
isEmpty(){
if (this.noOfShelf === 0){
return true;
}else {
return false;
}
}
}