title: Protected method call from other package
body: <p>I thought I understand <code>protected</code> modifier, but it looks like I don't. 
  The example is simple:</p>
  
  <pre><code>package com;
  public class Main {
  
       protected void method1() {
           // some code
       }
  }
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>package net;
  
  import com.Main;
  
  public class Out extends Main {
  
      public Out(){
           Main m = new Main();
           m.method1();
      }
  }
  </code></pre>
  
  <p>Why can't I call <code>method1</code> from a class that extends <code>Main</code>? Compiler error suggest to change modifier to <code>public</code>.</p>
  
  <p>I am really confused.</p>