title: what happens when we use class as return type in a mthod in c#
body: <p>My previous question was bit unclear to many. I proceed with same question?</p>
  
  <pre><code>class stockData
  {
     public string _stockName{get; set;}
     public int _stockId{get; set;}
     public double _currPrice{get; set;}
  }
  
  class getstockData
  {
     // here actually what happens here when we use the class as return type?
     public stockData getStock(string symbol)
     {
        //any statement
        return abc;
     }
     //and what actually happening here, when we put class as parameter.
     public void getStock(stockData stockData)
     {
        //any statement
     }
  }
  </code></pre>
  
  <p>In above codes there are two questions. and it is more clear than my previous one.
  regards</p>