# IDL_Object::_overloadImpliedPrint

The IDL_Object::_overloadImpliedPrint function method can return a variable of any type to be printed out.

This method is designed to replicate the default behavior of objects that do not use operator overloading. As a result, object classes that do inherit from the IDL_Object class but that do not override this particular method will behave in the same manner as object classes that do not inherit from the IDL_Object class.

Tip: If you write an object class that inherits from IDL_Object and overloads this method, you can call the superclass method directly to achieve the default behavior for specific cases.

## Syntax

In most cases, this method is called indirectly by Implied Print. When called explicitly, the syntax is:

Result = Obj->[IDL_Object::]_overloadImpliedPrint( Varname )

## Return Value

This method is called by Implied Print when it is called with an object that inherits from the IDL_Object class, but that does not implement its own `_overloadImpliedPrint` function method. The return value replicates the behavior of calling Implied Print with an object that does not inherit from the IDL_Object class.

## Arguments

### Varname

A string containing the name of the variable supplied to Implied Print. If the variable was an expression then Varname will be equal to "`<Expression>`" You may want to use this variable name when constructing the print output for your object class.

## Keywords

None

## Routine Signature

To overload this function method for an object class, implement a method with the following signature:

FUNCTION class::_overloadImpliedPrint, Varname

The return value of this function can be a variable of any type, which will be printed out instead of the default self object reference.

## Version History

8.3 | Introduced

## See Also

IDL_Object::_overloadPrint, IDL_Object::_overloadHelp, Overloading the Help and Print Procedures