c++ linux access an object from a method
<p>HI,</p>

<p>How can I define an object in a method?</p>

<pre><code>std::string method(std::string name, &amp;pointer_to_any_class)
{
//code
}?
</code></pre>

<p>if I have a Class like <code>Class *x= new Class();</code> 
Can i have method like <code>Method("me",*x);</code>?</p>

<pre><code>Class_me *y= new Class_me(); 
method("hey",*y);//will this mean that &amp;pointer_to_any_class is a pointer to Class_me?
</code></pre>
