class Base { set data ( value ) { console . log ( "data changed to " + value ) ; } } class Derived1 extends Base { constructor ( ) { super ( ) ; this . data = "foobar" ; } } let obj = new Derived1 ( ) ; obj . data = "fizzbuzz" ;