[#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&period; Return the address of the newly&hyphen;created object on success, and 0 otherwise&period; The instance must be destroyed using the `deleteObject` method of this object factory&period;

== Synopsis

Declared in `&lt;bdlma&lowbar;factory&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
TYPE*
createObject() = 0;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
