forked from tcorral/Design-Patterns-in-Javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MenuComponent.js
26 lines (26 loc) · 891 Bytes
/
MenuComponent.js
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
var MenuComponent = function(){
};
MenuComponent.prototype.getName = function(){
throw new Error("This method must be overwritten!");
};
MenuComponent.prototype.getDescription = function(){
throw new Error("This method must be overwritten!");
};
MenuComponent.prototype.getPrice = function(){
throw new Error("This method must be overwritten!");
};
MenuComponent.prototype.isVegetarian = function(){
throw new Error("This method must be overwritten!");
};
MenuComponent.prototype.print = function(){
throw new Error("This method must be overwritten!");
};
MenuComponent.prototype.add = function(oComponent){
throw new Error("This method must be overwritten!");
};
MenuComponent.prototype.remove = function(oComponent){
throw new Error("This method must be overwritten!");
};
MenuComponent.prototype.getChild = function(nIndex){
throw new Error("This method must be overwritten!");
};