Hi all,
I want, in javascript, to implement the template method pattern.
I have a PropertyDecorator with some subclasses: OpenButtonDecorator, SeeButtonDecorator and so on. I want to have in Property decorator the next function:
var build = function(){
decorate(); //Abstract in PropertyDecorator, defined in subclasses
return le.build();
}
How can I get this scenario working? Maybe I implemented wrong the inheritance :S (help with that too :) )
Thank you in advance.