1<cfcomponent> 2 3 <cffunction name="init" access="public" returntype="any"> 4 <cfargument name="arg1" type="any" required="true"> 5 <cfset this.myVariable = arguments.arg1> 6 7 <cfreturn this> 8 </cffunction> 9 10 <cffunction name="testFunc" access="private" returntype="void"> 11 <cfargument name="arg1" type="any" required="false"> 12 13 <cfif structKeyExists(arguments, "arg1")> 14 <cfset writeoutput("Argument exists")> 15 </cfif> 16 </cffunction> 17 18</cfcomponent>