주석

  다른 뜻에 대해서는 주석(comment) 문서를 참조하십시오.
  다른 뜻에 대해서는 주석(tin) 문서를 참조하십시오.
  다른 뜻에 대해서는 주석 (관직) 문서를 참조하십시오.

1 개요[ | ]

comment, annotation
주석, 코멘트, 어노테이션, 애너테이션[1]
  • 소스코드 중 사람이 임의로 기술한 내용
  • 사람이 알기 쉽게 첨가한 설명내용
  • 처리시에는 무시되므로 자유롭게 글 작성 가능

2 Java 예시[ | ]

 /**
  * Registers the text to display in a tool tip.   The text 
  * displays when the cursor lingers over the component.
  *
  * @param text  the string to display.  If the text is null, 
  *              the tool tip is turned off for this component.
  */
 public void setToolTipText(String text) {

3 형식상 주석[ | ]

  • 드문 경우이지만, 컴파일/런타임시 의미 있는 경우도 있다.[2]
  • 예: Python 2에서 소스코드의 encoding
# -*- coding: utf-8 -*-

4 언어별 주석[ | ]

5 같이 보기[ | ]

6 참고[ | ]

  1. [ӕnətéiʃən]
  2. 이런 경우, 형식은 주석이지만, 실제로는 기능이 있는 것이므로 주석은 아니다.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}