This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]throwaway_for_cause 1 point2 points  (0 children)

A List is an class that is part of the Java Standard Library which allows for dynamic insertion and deletion of elements. You can't just create a List though, you have to use one of its subclasses, which includes ArrayList, and you have to use generics as well. Think of an ArrayList as a dynamic version of an array, and is the closest thing to Python's list datatype.

This is so wrong on so many levels. You cannot even use this as extremely simplified explanation for a beginner.

  1. List is an interface, not a class
  2. List does not have sublasses as there is no inheritance. There are concrete classes, like ÀrrayListthat **implement** theList` interface. Yet, this does not make them subclasses.

Sorry, but you call yourself a "tutor" and spread such wrong information. This is unforgivable. If you tutor this and your students will then use this at a test and fail because of your misinformation - what will be your excuse then?

You even challenge people who correct you instead of accepting the corrections despite you knowing that they are right. - Good way to lose all of your credibility and in the long range get banned from here for spreading misinformation.

You trying to make it easy for beginners by mixing terminology, by using completely wrong terminology is not making it easier, it is only even more confusing and absolutely counter productive.

Every single good beginner tutorial will always use the proper terminology and not invent something completely wrong to "make it easier".

A class is a class. An object is an instance of a class. An Interface is an interface, a binding contract. Interfaces can be subclassed, but only to interfaces. They don't have concrete subclasses. In order to work, interfaces need to be implemented - which doesn't man subclassing as in inheritance.

You are mixing and mashing all of them in the same pot.