An abstract class is a ‘class’ that is used just for inheritance. We should not be creating objects directly from abstract classes. Here is the code: function Car(name) { if(this.constructor === Car) { throw 'Cannot instantiate abstract class';...
blog.adarshkonchady.com1 min readNo responses yet.