title: Make several classes have the same attributes without inheritance
body: <p>I'm facing a problem in Java. </p>
  
  <p>I need to have several classes with the same attributes ( for example a Position and a boolean isWalkable ). </p>
  
  <p>But I don't want these classes to inherit from a class Element because that would prevent me from using inheritance later. </p>
  
  <p>I thought of an interface (so that the interface has the attributes), but apparently you can't have an interface inherit from a class. </p>
  
  <p>There must be a way because otherwise I would have to copy/paste my attributes and there methods.</p>
  
  <p>Thanks in advance for anyone who has an idea on how to overcome this problem.</p>