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)