Closed
Description
Calling super()
within a constructor is a bit redundant and annoying... can we have it called implicitly if call to super is omitted?
For example this
class Manager extends Employee {
constructor() {
this.title = "The Manager";
}
}
should be equivalent to
class Manager extends Employee {
constructor() {
super(); // call to default constructor added implicitly
this.title = "The Manager";
}
}
(C# also does a similar thing and it's a nice feature).