PdfPrep.com

The question requires that you evaluate the underlined text to determine if it is correct.

The question requires that you evaluate the underlined text to determine if it is correct.

You have the following class definition:

The logErrormethod can be invoked by code in all classes in the same package as the Logger class.

Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct.
A . No change is needed
B . only by the Loggerclass
C . only by the Loggerclass and classes in the same package that inherit from it
D . by all classes in all packages

Answer: C

Exit mobile version