title: How to use the methods of a subclass of a superclass in another class in which I created a ArrayList<SuperclassName>?
body: <p>How to use the methods of a subclass of a superclass in another class in which I created a ArrayList?</p>
  
  <p>I created a ArrayList of a superclass in another class. This superclass has three subclasses, each with their own methods. How do I use those methods?</p>
  
  <p>And also, how can I use the instance variables of those subclasses?</p>