The constructor of BranchOverview
is public
, which means that all types involved in its formal parameter list must also be public
. Most probably you have not provided an accessibility specification for Branch
, i.e. you have written
class Branch { ... }
which means that Branch
is internal
.