Pppppppppppppp

Solo disponible en BuenasTareas
  • Páginas : 7 (1640 palabras )
  • Descarga(s) : 0
  • Publicado : 29 de mayo de 2011
Leer documento completo
Vista previa del texto
prjanimales
Class Cat

java.lang.Object
prjanimales.Animal
prjanimales.Cat
All Implemented Interfaces:
Pet
public class Cat
extends Animal
implements Pet

Field Summary

Fields inherited from class prjanimales.Animal
legs

Constructor Summary
Cat(java.lang.String name)


Method Summary
void eat()

java.lang.String getname()java.lang.String getName()

void play()

void setname(java.lang.String name)

void setName(java.lang.String name)

void walk()


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


Constructor Detail
Cat

publicCat(java.lang.String name)
Method Detail
walk

public void walk()
Specified by:
walk in class Animal
eat

public void eat()
Specified by:
eat in class Animal
getName

public java.lang.String getName()
setName

public void setName(java.lang.String name)
play

public void play()
Specified by:
play in interface Pet
getname

public java.lang.String getname()
Specified by:
getname ininterface Pet
setname

public void setname(java.lang.String name)
Specified by:
setname in interface Pet
prjanimales
Class Cat

java.lang.Object
prjanimales.Animal
prjanimales.Cat
All Implemented Interfaces:
Pet
public class Cat
extends Animal
implements Pet

Field Summary

Fields inherited from class prjanimales.Animal
legs

Constructor SummaryCat(java.lang.String name)


Method Summary
void eat()

java.lang.String getname()

java.lang.String getName()

void play()

void setname(java.lang.String name)

void setName(java.lang.String name)

void walk()


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


Constructor Detail
Cat

public Cat(java.lang.String name)
Method Detail
walk

public void walk()
Specified by:
walk in class Animal
eat

public void eat()
Specified by:
eat in class Animal
getName

public java.lang.String getName()
setName

public void setName(java.lang.String name)
play

public void play()Specified by:
play in interface Pet
getname

public java.lang.String getname()
Specified by:
getname in interface Pet
setname

public void setname(java.lang.String name)
Specified by:
setname in interface Pet
prjanimales
Class Cat

java.lang.Object
prjanimales.Animal
prjanimales.Cat
All Implemented Interfaces:
Pet
public class Cat
extends Animal
implements PetField Summary

Fields inherited from class prjanimales.Animal
legs

Constructor Summary
Cat(java.lang.String name)


Method Summary
void eat()

java.lang.String getname()

java.lang.String getName()

void play()

void setname(java.lang.String name)

void setName(java.lang.String name)void walk()


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


Constructor Detail
Cat

public Cat(java.lang.String name)
Method Detail
walk

public void walk()
Specified by:
walk in class Animal
eat

public void eat()
Specified by:
eat in class Animal
getName

publicjava.lang.String getName()
setName

public void setName(java.lang.String name)
play

public void play()
Specified by:
play in interface Pet
getname

public java.lang.String getname()
Specified by:
getname in interface Pet
setname

public void setname(java.lang.String name)
Specified by:
setname in interface Pet
prjanimales
Class Cat

java.lang.Object
prjanimales.Animal...
tracking img