|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SimpleSound Sound
Class that represents a sound. This class is used by the students to extend the capabilities of SimpleSound. Copyright Georgia Institute of Technology 2004
Constructor Summary | |
Sound(int numSeconds)
Constructor that takes the number of seconds that this sound will have |
|
Sound(Sound copySound)
Constructor that takes a sound to copy |
|
Sound(java.lang.String fileName)
Constructor that takes a file name |
Method Summary | |
java.lang.String |
toString()
Method to return the string representation of this sound |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Sound(java.lang.String fileName)
fileName
- the name of the file to read the sound frompublic Sound(int numSeconds)
numSeconds
- the number of seconds desiredpublic Sound(Sound copySound)
Method Detail |
public java.lang.String toString()
toString
in class SimpleSound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |