Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Zehra Baig
- //CSC-236-C1
- //Lab 2-B
- public abstract interface NoteADT
- {
- //Sets numeric value of Note obj, calls other methods dependent on it
- public abstract void setValue(int nv);
- //Sets length of Note obj
- public abstract void setLength(String nl);
- //Sets String value of Note obj
- public abstract void setStrValue();
- //Sets key color of Note obj
- public abstract void setKeyColor();
- //Calculates frequency of note
- public abstract void setFrequency();
- //Returns numeric value of Note obj
- public abstract int getValue();
- //Returns length of Note obj
- public abstract String getLength();
- //Returns String value of Note obj
- public abstract String getStrValue();
- //Returns key color of Note obj
- public abstract String getKeyColor();
- //Returns frequency of Note obj
- public abstract double getFrequency();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement