class B {
    b = "world";

    Boo() {
       return this.b+"?";
    }
  }

export class A extends B {
  a = "hello"

  Aoo(space=" ") {
     return this.a+space;
  }

  toString() {
     return this.Aoo()+this.Boo(); 
  }
}

// A mix-in class
function Mix(base: any) {
   return class Mix extends base {
      m = 5;

      toString() {
         return (this.Aoo()+this.Boo()+"\n").repeat(this.m); 
      } 
   }
}

let MixA = Mix(A);

let a = new MixA();

export const mix_text = a.toString();
