Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class a here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class a
- {
- // instance variables - replace the example below with your own
- private int x;
- /**
- * Constructor for objects of class a
- */
- public a()
- {
- // initialise instance variables
- x = 0;
- }
- /**
- * An example of a method - replace this comment with your own
- *
- * @param y a sample parameter for a method
- * @return the sum of x and y
- */
- public int sampleMethod(int y)
- {
- // put your code here
- return x + y;
- }
- }
Add Comment
Please, Sign In to add comment