|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Exercise8_2
Testing use of interface in different package
Field Summary | |
private java.lang.String |
latinName
Latin name of animal |
private float |
weight
Weight in kilos |
Constructor Summary | |
Exercise8_2()
Constructor for objects of class Exercise8_2 |
|
Exercise8_2(float weight,
java.lang.String latineName)
Constructor for objects of class Exercise8_2 |
Method Summary | |
java.lang.String |
getLatinName()
Gets the Latin name |
float |
getWeight()
Gets the weight. |
static void |
main(java.lang.String[] args)
Main method for exercising the code. |
void |
setWeight(float weight)
Sets the weigth |
java.lang.String |
toString()
Overridding of toString method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private float weight
private java.lang.String latinName
Constructor Detail |
public Exercise8_2()
public Exercise8_2(float weight, java.lang.String latineName)
Method Detail |
public java.lang.String toString()
public java.lang.String getLatinName()
public float getWeight()
public void setWeight(float weight)
public static void main(java.lang.String[] args)
args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |