Generate object by interface at run time