{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lockable - -public void lock(int key Unlocks the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Lockable.java Author: Lewis/Loftus // // // //******************************************************************** / public interface Lockable { //----------------------------------------------------------------- // Sets the object's key //----------------------------------------------------------------- public void setKey(int key); //----------------------------------------------------------------- // Locks the object
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public void lock(int key); //-----------------------------------------------------------------// Unlocks the object //-----------------------------------------------------------------public void unlock(int key); //-----------------------------------------------------------------// Returns true it the object is locked, else returns false //-----------------------------------------------------------------public boolean locked(); }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online