query: What are the advantages for instantiating a subclass as superclass type?
positive_passages.docid: 855
positive_passages.text: What does it mean to "program to an interface"?
negative_passages.docid: 137606
negative_passages.text: Object class as super class in Java
negative_passages.docid: 66399
negative_passages.text: Java Generics -- Assigning a list of subclass to a list of superclass
negative_passages.docid: 146309
negative_passages.text: Is it necessary or useful to inherit from python's object in Python 3.x?
negative_passages.docid: 134462
negative_passages.text: Why should I call self=[super init]
negative_passages.docid: 89502
negative_passages.text: Bounding generics with 'super' keyword
negative_passages.docid: 125134
negative_passages.text: Instantiating object of type parameter
negative_passages.docid: 112492
negative_passages.text: Why is there no multiple inheritance in Java, but implementing multiple interfaces is allowed?
negative_passages.docid: 134042
negative_passages.text: Why do many Collection classes in Java extend the abstract class and implement the interface as well?
negative_passages.docid: 42661
negative_passages.text: Good reasons to prohibit inheritance in Java?
negative_passages.docid: 50570
negative_passages.text: When to use an interface instead of an abstract class and vice versa?
negative_passages.docid: 27078
negative_passages.text: When do Java generics require  instead of  and is there any downside of switching?
negative_passages.docid: 27022
negative_passages.text: The difference between Classes, Objects, and Instances
negative_passages.docid: 11237
negative_passages.text: Instantiating generics type in java
negative_passages.docid: 131282
negative_passages.text: How do you cast a List of supertypes to a List of subtypes?
negative_passages.docid: 127387
negative_passages.text: Why to use Polymorphism?
negative_passages.docid: 147911
negative_passages.text: Why we use inner classes?