주석

Jmnote (토론 | 기여)님의 2014년 5월 18일 (일) 22:42 판 (→‎개요)
  다른 뜻에 대해서는 Tin 문서를 참조하십시오.

1 개요

comment
주석, 코멘트
  • 소스코드 중 사람이 임의로 기술한 내용
  • 사람이 알기 쉽게 첨가한 설명내용
  • 처리시에는 무시되므로 자유롭게 글 작성 가능
드문 경우이지만, 컴파일/런타임시 의미 있는 경우도 있음[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 같이 보기

4 참고 자료

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