12345678910111213141516171819202122232425262728293031323334353637 |
-
- /**
- * Write a description of class Pet here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Pet
- {
- // instance variables - replace the example below with your own
- private String Pet;
- private int x;
- private String name;
-
- /**
- * Constructor for objects of class Pet
- */
- public Pet(String petsName)
- {
- name = petsName;
-
-
- }
-
- /**
- * 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;
- }
- }
|