Examlex

Solved

Consider the Following Code Snippet: Employee AnEmployee = New Programmer();

question 81

Multiple Choice

Consider the following code snippet: Employee anEmployee = new Programmer() ;
String emp = anEmployee.toString() ;
Assume that the Programmer class inherits from the Employee class, and neither class has an implementation of the toString() method. Which of the following statements is correct?


Definitions:

Related Questions