C#C
C#3y ago
moshimoshi

❔ Polymorphism

Can someone help me understand this part of the code? I dont understand why its being written like this...

public class BankBranch
   {
      //
      // This field keep a list of bank accounts.
      // Any type of accounts will be accepted
      // 
      private List<Account> _accounts;

      public BankBranch(string name)
      {
         Name = name;
         _accounts = new List<Account>();
      }

      // Auto-properties
      public string Name { get; set; }
Was this page helpful?