title: Programming exercise gone wrong
body: <p>So I have this simple (for others) exercise where i need to create a pharmacy and add to that 2 types of drugs. I have one class called Drugs which contains the attributes of the drugs:</p>
  
  <pre><code>public class drugattr
      {
          public int id; 
          public string drugName; 
          public string DrugDesc; 
          public int drugIntensity ;
  
          public drugattr(int id, string drugName, string DrugDesc, int drugIntensity)
          {
              this.id = id;
              this.drugName= drugName;
              this.DrugDesc = DrugDesc;
              this.drugIntensity = drugIntensity ;
          }
      } 
  </code></pre>
  
  <p>Then i have a pharmacy class with the pharmacies attributes:</p>
  
  <pre><code> public class pharmacyatrr
      {
          public string PharmacyName; 
          public string PharmacyTown; 
          public List&lt;drugattr&gt; Atrributes= null; // the list with the drugs' attributes 
  
  
          public pharmacyatrr(string pharmacyName, string pharmacyTown, List&lt;drugattr&gt; atrributes)
          {
              this.PharmacyName = pharmacyName;
              this.PharmacyTown = pharmacyTown;
              this.Atrributes = atrributes;
          }
  </code></pre>
  
  <p>and i have my main class where i need to create a pharmacy and assign to it a couple of drugs.</p>
  
  <pre><code> public class Program : pharmacyatrr
      {
          public Program(string PharmacyName, string PharmacyTown , List&lt;drugattr&gt; Atrributes) : base(PharmacyName, PharmacyTown , Atrributes)
          {
              this.PharmacyName = pharmacyName;
              this.PharmacyTown = pharmacyTown;
              this.Atrributes = atrributes;
  
          }
  
          static void Main(string[] args)
          {   
             drugattr drugA = new drugattr(1, "DrugA_Name", "Very STrong", 20);
              drugattr drugB = new drugattr(2, "DrugB_Name", "Mild Strong", 8);
  
              pharmacyatrr pharmacy1 = new pharmacyatrr("PharmacyName", "Town", drugA); // the problem is here
  
          }
      }
  </code></pre>
  
  <p>So if I try to add drugB i get the expected error that it can only accept 3 parameters.</p>
  
  <p>If i create a pharmacy2 with the same name and town but with drugB that wouldn't create a new pharmacy?</p>
  
  <p>I need one pharmacy to have multiple drug entries... </p>
  
  <p>any tips on how to solve this? I am fairly new to C# and programming so please don't go harsh on me!</p>