상속
2023. 3. 22. 16:51ㆍGame Develop
class Parents
{
public Parents()
{
Console.WriteLine("부모");
}
}
class Child:Parents
{
public Child()
{
Console.WriteLine("자식");
}
}
class Program
{
static void Main(string[] args)
{
Child child = new Child();
}
} // 결과 : 부모 \n 자식
'Game Develop' 카테고리의 다른 글
GameView에서 보이지 않는 경우 (0) | 2023.04.17 |
---|---|
#region #endregion (0) | 2023.03.27 |
IndexOf() & LastIndexOf() (0) | 2023.03.21 |
ToCharArray() (0) | 2023.03.21 |
StartsWith() & EndsWith() (0) | 2023.03.21 |