(This is a newbie's question for I have very little experience with classes)

I want a public function (i.e. method) in my class to return a UDT. So, where must I define this UDT, in the class, or outside it, in a form, in a module?