How should you complete the code?

Posted by: Pdfprep Category: 98-388 Tags: , ,

DRAG DROP

You have a Java class named InsurancePolicy.

You need to define a constant data member named RATE. The data member must be accessible by any class without instantiating the InsurancePolicyclass.

How should you complete the code? To answer, drag the appropriate code segment to the correct

position. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

Answer:

Explanation:

References:

https://docs.oracle.com/javase/tutorial/java/javaOO/classvars.html

Leave a Reply

Your email address will not be published.