Solved

Suppose the Abstract Class Message Is Defined Below Public Abstract

Question 80

Multiple Choice

Suppose the abstract class Message is defined below public abstract class Message {
Private String value;
Public Message(String initial)
{
Value = initial;
}
Public String getMessage()
{
Return value;
}
Public abstract String translate() ;
}
A concrete subclass of Message, FrenchMessage, is defined. Which methods must FrenchMessage define?


A) translate() only
B) getMessage() only
C) The FrenchMessage constructor and translate() only
D) The FrenchMessage constructor, getMessage() , and translate()

Correct Answer:

verifed

Verified

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

Related Questions