Guest User

Untitled

a guest
Feb 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1.  
  2. /**
  3.  * Write a description of class a here.
  4.  *
  5.  * @author (your name)
  6.  * @version (a version number or a date)
  7.  */
  8. public class a
  9. {
  10.     // instance variables - replace the example below with your own
  11.     private int x;
  12.  
  13.     /**
  14.      * Constructor for objects of class a
  15.      */
  16.     public a()
  17.     {
  18.         // initialise instance variables
  19.         x = 0;
  20.     }
  21.  
  22.     /**
  23.      * An example of a method - replace this comment with your own
  24.      *
  25.      * @param  y   a sample parameter for a method
  26.      * @return     the sum of x and y
  27.      */
  28.     public int sampleMethod(int y)
  29.     {
  30.         // put your code here
  31.         return x + y;
  32.     }
  33. }
Add Comment
Please, Sign In to add comment