extend is actually returning a new class by Metadata.createClass
create prototype chain
fnClass.prototype = jQuery.sap.newObject(fnBaseClass.prototype);
fnClass.prototype.constructor = fnClass;
Make the class visible as JS Object: jQuery.sap.setObject(sClassName, fnClass);
fnClass.getMetadata = fnClass.prototype.getMetadata = jQuery.sap.getter(oMetadata);
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5CNmJDZhRGM5IGMmZGNlZTYiBTM0kjZyIGZmFzY1QTOx8CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.png)