title: Abstract/Base struct in C++?
body: <p>I'm making a chess game and I would like to have an array of pieces.  </p>
  
  <p>If I'm correct, in Java you can have an abstract <code>Piece</code> class and have <code>King</code> or <code>Queen</code> extend that class.  If I were to make an array of <code>Piece</code>s I could place a <code>King</code> piece somewhere in that array and a <code>Queen</code> piece at another spot because both <code>King</code> and <code>Queen</code> extend <code>Piece</code>.  </p>
  
  <p>Is there any way to do that with structures in C++?</p>