up previous next contents
Next: Notes on Usage Up: Comments and Javadoc Previous: Javadoc comment tags   Contents

A comment example

  • A heavily-commented Attr class:
      class Attr
      {
          \begin{enumerate}
          \item  The attribute name. */
          \end{enumerate}
       \end{enumerate}
         private String name;
    
          \begin{enumerate}
          \item  The attribute value. */
          \end{enumerate}
       \end{enumerate}
         private Object value = null;
    
        /**
         * Creates a new attribute.
         * @see Attr2
         */
         public Attr (String name)
         {
            this.name = name;
         }
      }
    


up previous next contents
Next: Notes on Usage Up: Comments and Javadoc Previous: Javadoc comment tags   Contents