Give me an example for this type of method?
<p>Please show me a simple code with class name as return type in a method? Some of the codings in project as classname as return type for methods? I don't understand What that mean?</p>

<p>Can anyone give me a breif explanation and simple example regarding that one?</p>

<p>For example</p>

<pre><code>public Dataset getEmployees()
{
-----
----
------
}
</code></pre>

<p>In the above code we are using (<code>Dataset</code>)(It's basically a class) but here we are using as return type for <code>getEmployees</code> method.</p>

<p>I want the same as example. Instead of <code>Dataset</code>,user defined class should be as return type. I hope you understand what my doubt is. </p>
