我以前的问题对很多人来说有点不清楚。我继续提出同样的问题?
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
}
}
在上面的代码中有两个问题。它比我以前的更清楚。 问候