Is it possible to simulate abstract base class in JavaScript? What is the most elegant way to do it?
Say, I want to do something like:
var cat = new Animal('cat'); var dog = new Animal('dog'); cat.say(); dog.say();
It should output:
meow bark