public class Item{

public string Name;

}


public class Weapon : Item{

public int Damage;

}


List<Item> itemlist = new List<Item>();


Item weapon1 = new Weapon();

weapon1.Damage = 10;


itemlist.add(weapon1);


ํ•˜์œ„ํด๋ž˜์Šค๋“ค์„ ์•„์ดํ…œ์ด๋ผ๋Š” ๋ถ€๋ชจ๋ฅผ ๋‘๊ณ  ์•„์ดํ…œ๋ฆฌ์ŠคํŠธ๋กœ ์ปจํŠธ๋กค ํ•˜๋ฉด๋˜์ง€์•Š์„๊นŒ ํ–ˆ๋Š”๋ฐ


์ž์‹์„ ์•„์ดํ…œ๋ฆฌ์ŠคํŠธ์ชฝ์— ๋„ฃ์œผ๋‹ˆ ์ž์‹ํด๋ž˜์Šค ๋ฉค๋ฒ„๋ณ€์ˆ˜ ํ˜ธ์ถœ์ด ์•ˆ๋ผ์„œ.. ์–ด๋–ป๊ฒŒ ํ•ด์•ผํ•จ ใ… ?