Solved

Consider the Following Declarations: Public Interface Encryptable

Question 10

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?


A) public void encrypt()
B) public void encrypt(String aKey)
C) public String encrypt(String aKey)
D) void encrypt(String aKey)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents