~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to ide/projectimport/bluej/src/org/netbeans/bluej/resources/templates/newclass/stdclass.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package Templates.Bluej;
 
2
 
 
3
/**
 
4
 * Write a description of class __NAME__ here.
 
5
 * 
 
6
 * @author __USER__
 
7
 * @version (a version number or a date)
 
8
 */
 
9
public class $CLASSNAME {
 
10
    // instance variables - replace the example below with your own
 
11
    private int x;
 
12
 
 
13
    /**
 
14
     * Constructor for objects of class __NAME__
 
15
     */
 
16
    public $CLASSNAME() {
 
17
        // initialise instance variables
 
18
        x = 0;
 
19
    }
 
20
 
 
21
    /**
 
22
     * An example of a method - replace this comment with your own
 
23
     * 
 
24
     * @param  y   a sample parameter for a method
 
25
     * @return     the sum of x and y 
 
26
     */
 
27
    public int sampleMethod(int y) {
 
28
        // put your code here
 
29
        return x + y;
 
30
    }
 
31
}