JS kombinieren Klassen, irgendwie ...

function newclasses(...classes) {
    class end {
        constructor() {
            classes.forEach((value) => {
                this[value.name] = new value();
            });
        }
    }
    return end;
}
Goldenegg000