Examlex

Solved

Consider the Following Declarations: Public Interface Encryptable

question 47

Multiple Choice

Consider the following declarations: public interface Encryptable
{
Void encrypt(String key) ;
}
Public class SecretText implements Encryptable
{
Private String text;
_____________________________
{
// code to encrypt the text using encryption key goes here
}
}
Which of the following method headers should be used to complete the SecretText class?


Definitions:

Related Questions