c# (1) 썸네일형 리스트형 클래스 특성 - 상속성/은닉성/다형성 1. 상속성 using System; namespace CSharp { // 객체 지향 OOP; Object Oriented Programming // [부모 클래스; 기반 클래스] class Player { // 필드. 필드는 인스턴스마다 제각각인 값을 가진다. static public int counter; // Knight 인스턴스 모두 공유. 오로지 하나만 존재. public int id; public int hp; public int attack; public Player() { System.Console.WriteLine("Player생성자 호출"); } public Player(int hp) { this.hp = hp; System.Console.WriteLine("Player-hp생성자 호.. 이전 1 다음