Advertisement
Sheero

NoteADT

May 24th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1. //Zehra Baig
  2. //CSC-236-C1
  3. //Lab 2-B
  4.  
  5. public abstract interface NoteADT
  6. {
  7.     //Sets numeric value of Note obj, calls other methods dependent on it
  8.     public abstract void setValue(int nv);
  9.     //Sets length of Note obj
  10.     public abstract void setLength(String nl);
  11.     //Sets String value of Note obj
  12.     public abstract void setStrValue();
  13.     //Sets key color of Note obj
  14.     public abstract void setKeyColor();
  15.     //Calculates frequency of note
  16.     public abstract void setFrequency();
  17.     //Returns numeric value of Note obj
  18.     public abstract int getValue();
  19.     //Returns length of Note obj
  20.     public abstract String getLength();
  21.     //Returns String value of Note obj
  22.     public abstract String getStrValue();
  23.     //Returns key color of Note obj
  24.     public abstract String getKeyColor();
  25.     //Returns frequency of Note obj
  26.     public abstract double getFrequency();
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement