Question: Given the following two classes, each in a different package, which line inserted into the code allows the second class to compile? A. import static
Given the following two classes, each in a different package, which line inserted into the code allows the second class to compile?

A. import static commerce.Bank.*;
B. import static commerce.Bank;
C. static import commerce.Bank.*;
D. static import commerce.Bank;
E. None of the above
package commerce; public class Bank { } public void withdrawal (int amountInCents) {} public void deposit(int amountInCents) {} package employee; // INSERT CODE HERE public class Teller { } public void process Account (int deposit, int withdrawal) { withdrawal (withdrawal); deposit (deposit); }
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Based on the information provided in the image and the question about which line enables the Teller ... View full answer
Get step-by-step solutions from verified subject matter experts
