JS Combine aulas, meio ...

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