Motivation To replace some methods of class on creation instead on creating addictional class Example class A { b() { return 3; } } let aO=new A(); aO.b(); //3 let aR=new A(){ b() { return 4; } } aO.b(); //4