Class Pet

java.lang.Object
  |
  +--Pet

public class Pet
extends java.lang.Object

CS1322: Programming Assignment #0 - Fall 2002

  Pet.java
  Class Pet - A Class designed to learn how to work with
    methods and javadoc.

  Revisions: 1.0 Aug. 26, 2002
               Created the Pet class

             1.1 Aug. 26, 2002
               Finished, Compiled, Tested
  
Collaboration Statement: I worked on the homework assignment alone, using only course materials.


Constructor Summary
Pet()
           
 
Method Summary
 int getAge()
          Get the value of age.
 java.lang.String getAnimalType()
          Get the value of animalType.
 java.lang.String getName()
          Get the value of name

static void main(java.lang.String[] args)
          Debugging main for class Pet.
 void setAge(int v)
          Set the value of age.
 void setAnimalType(java.lang.String v)
          Set the value of animalType.
 void setName(java.lang.String n)
          Set the value of name

 java.lang.String toString()
          Change standard string to output to be used for this specific program

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pet

public Pet()
Method Detail

getName

public java.lang.String getName()
Get the value of name

Returns:
value of name

setName

public void setName(java.lang.String n)
Set the value of name

Parameters:
n - value to assign to name

getAge

public int getAge()
Get the value of age.

Returns:
value of age.

setAge

public void setAge(int v)
Set the value of age.

Parameters:
v - Value to assign to age.

getAnimalType

public java.lang.String getAnimalType()
Get the value of animalType.

Returns:
value of animalType.

setAnimalType

public void setAnimalType(java.lang.String v)
Set the value of animalType.

Parameters:
v - Value to assign to animalType.

toString

public java.lang.String toString()
Change standard string to output to be used for this specific program

Overrides:
toString in class java.lang.Object
Returns:
phrase as string

main

public static void main(java.lang.String[] args)
Debugging main for class Pet.

Parameters:
args - IGNORED