Typescript Create Object And Class In Java