title: Java inheritance How to differentiate type of user in a program?
body: <p>So I'm making a system with a login that gives the user different options depending on what type of user they are.</p>
  
  <p>e.g <a href="https://i.stack.imgur.com/QyUGp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QyUGp.png" alt="enter image description here"></a></p>
  
  <p>Im wondering how I should make the system differentiate between the two at login. Do i give the user class a Boolean type check for each type of user?</p>
  
  <p>e.g booleanUser1Check() and booleanUser2Check() </p>
  
  <p>or an userType id Attribute.</p>
  
  <p>What is the best way to do this in terms of oop? </p>