title: Inheritance with abstract class in Java
body: <p>I want make a simple inheritance instances, on which there is a lot of info on the internet, but I just can't understand it in my case.</p>
  
  <pre><code>public abstract class Board {       
      private Block [][] board;               
      /**
       * creates and empty board
       */
      public Board(){
          board = new Block[6][6];
  
          //init board
          for(int i = 0; i&lt;board.length ...
  
      }
  
      public abstract place(int x, int y, int type);
  
      public void otherFunction1();
  
      etc..
  </code></pre>
  
  <p>And my child class</p>
  
  <pre><code>public class StandartBoard extends Board{
  
      public int place(int type, int x, int y) {
          bord[i][j].something;
      }
  </code></pre>
  
  <p>The deal is, that I want to use the initialization from the super class's constructor and also all of it's other functions, but I want place function to be specific for the StandartBoard. How hould I define variable "board", so I can use and modify the same varaible from the super class.</p>
  
  <p>I know one way is with sets and gets, but can't I have acces to it directly with protected or something ... </p>