#class
Read more stories on Hashnode
Articles with this tag
static members 용도 static 변수들은 클래스의 instance가 아니라 클래스에 속하게 된다. 따라서 인스턴스 생성과 관련이 없고, 클래스 이름으로 접근해야 한다. static 멤버들은 클래스의 모든 인스턴스 사이에서 공유된다. 코드...