public class Order
{
static Customer cust = new Customer();
string sEmpty = "";
public static void main(String args[])
{
int iTotal = 10;
string sProductName = "Salt";
Ship shp = new Ship();
}
}
在上面的代码中,在内存的哪个部分创建了哪个对象和引用?(我的意思是堆和堆栈)
(来源:c-sharpcorner.com)