[#BloombergLP-bdlma-Factory-createObject] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlma.adoc[bdlma]::xref:BloombergLP/bdlma/Factory.adoc[Factory]::createObject :relfileprefix: ../../../ :mrdocs: Create an instance of the specified `TYPE` using default arguments. Return the address of the newly‐created object on success, and 0 otherwise. The instance must be destroyed using the `deleteObject` method of this object factory. == Synopsis Declared in `<bdlma_factory.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual TYPE* createObject() = 0; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#