Oct 29, 2024
You probably need to reread that section, as I also said, "But in our cross-modular application we can’t do that."
As such, one would in fact need to make ModuleB's AccountLoader class public.
Public AccountLoading protocol in P, public AccountLoader class in B, and the app, which "knows" about B, wires things together.