-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<5주차> instance 메서드와 class 메서드의 차이점을 설명하시오. #25
Comments
instance 메서드 class 메서드(= Type메서드) |
instance 메소드 class 메소드 여기서 class와 static의 차이는 오버라이딩이 되냐 안되냐의 차이이다. |
instance 메소드 -> static , class가 붙지 않은 메소드 , 우리가 흔이 아는 객체를 생성해야 쓸 수 있는 메소드 class 메소드 -> 객체를 생성하지 않고도 사용할 수 있는 메소드. |
Instance Method인스턴스 메소드는 특정한 클래스, 구조체 또는 열거체의 인스턴스에 속해있는 함수를 말합니다. 이는 객체의 '인스턴스'가 생성된 경우에만 사용이 가능하며, 자신이 속해 있는 타입의 지정된 인스턴스에만 호출이 가능하고 존재하는 인스턴스가 없다면 독립적으로 호출할 수 없다. Class Method클래스 매소드는 타입 그 자체에서 호출이 가능하도록 정의하는 메소드 이며 타입의 인스턴스에서가 아니라 타입 자체에서 호출할 수 있도록 만드는 메소드라 볼 수 있다. 그 중에서도 클래스 메소드는 |
인스턴스 메소드 (Instance Method) 타입 메소드 (Type Method) |
No description provided.
The text was updated successfully, but these errors were encountered: