C
codymanix
Hi!
I have a class Bank and a Class BankAccount. A Bank can contains multiple
BankAccounts (logical, isn't it?). The central Bank object contains a
datatable which holds the data of all bankaccounts.
This means, the class BankAccount must have access rights to the datatable
in Bank, but I don't want to expose the datatable as a public property.
Since C# does not support friend classes, what is the best solutuion for
this problem?
I have a class Bank and a Class BankAccount. A Bank can contains multiple
BankAccounts (logical, isn't it?). The central Bank object contains a
datatable which holds the data of all bankaccounts.
This means, the class BankAccount must have access rights to the datatable
in Bank, but I don't want to expose the datatable as a public property.
Since C# does not support friend classes, what is the best solutuion for
this problem?