C#
C# -- static class
자유프로그램
2016. 2. 26. 15:16
반응형
C# -- static class
참고 : https://msdn.microsoft.com/ko-kr/library/79b3xss3.aspx
http://stackoverflow.com/questions/241339/when-to-use-static-classes-in-c-sharp
static class 특징
1. static member 만 가질수 있다.
2. 인스턴스화 할 수 없다.
3. 상속되지 않는다 (sealed)
4. instance 생성자 없다.
** static class 사용 예 ; 확장메소드, Math 클래스
반응형