title: Abstract with Inaccessible due to its protection
body: <p>This is my class stock  all my attributes in the stock class have to be protected other attributes and methods are public.</p>
  
  <p>My problem is in the Book class which inherits from the Stock Class</p>
  
  
  
  <pre><code>abstract public class Stock
  {
      protected int libraryNum;
      protected string title;
      protected Member member;
      protected DateTime returnDate;
      private int id;
      private string strtitle;
  
      public Stock(int id, string strtitle)
      {
          libraryNum = id;
          title = strtitle;
          returnDate = DateTime.Now;
          member = null;
      }
  
      public override string ToString()
      {
          return base.ToString();
      }
  }
  
  public class Journal :Stock
  {
      private int vol;
  
      public Journal(int vol, string strtitle, int id) : base(id, strtitle)
      {
      }
  
      public override string ToString()
      {
          return base.ToString();
      }
  
  }
  </code></pre>
  
  <p>Down here I get a squiggle red line under the id in the Base(id, Strtitle) 
  it says inaccessible due to its protection level. 
  I am not sure how to make it accessible.</p>
  
  <pre><code>public class Book : Stock
  {
      private string authour;
  
      public Book(string strtitle, string strauthor, int intid) : base(id, strtitle)
      {
      }
  
      public override string ToString()
      {
          return base.ToString();
      }
  }
  </code></pre>