com.didana.codecontract.tests
Class Human
java.lang.Object
com.didana.codecontract.tests.Mammal
com.didana.codecontract.tests.Human
- All Implemented Interfaces:
- Animal, Terrestrial
@Contract
public class Human
- extends Mammal
- implements Terrestrial
Class used for testing contract inheritance.
- Author:
- Diana Berberova
Constructor Summary |
Human()
|
Human(java.lang.String name)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numberTeeth
public int numberTeeth
-
Human
public Human()
-
Human
public Human(java.lang.String name)
-
getHumanName
public java.lang.String getHumanName()
-
setHumanName
public void setHumanName(java.lang.String humanName)
-
setNumberTeeth
public void setNumberTeeth(int numberTeeth)
-
getNumberTeeth
public int getNumberTeeth()
-
getFullName
public java.lang.String getFullName()
-
- Specified by:
getFullName
in interface Animal
- Specified by:
getFullName
in class Mammal
staticSet
public void staticSet()
-
setDescription
public void setDescription(java.lang.String description)
-
- Specified by:
setDescription
in interface Terrestrial