Class
A class is a blueprint for objects and defines a type with fields and methods.
Related concepts: ObjectFieldMethodMemberTypePrototype
Closest Wikipedia entry: Class (computer programming)
Misconceptions about Class27 documented Misconceptions
Check YourselfAbstractClassMustImplementAbstractMethod — Java
An abstract class must implement all abstract methods defined in its superclass
AbstractClassNoImplementation — Java
An abstract class cannot contain implemented methods
AddMemberAtRuntime — Java
Set of class members can change at runtime
AllClassesHaveDefaultConstructor — Java
All classes automatically get a no-argument constructor
AnyClassException — Java
Any class can be an exception class
ArrayListIsArray — Java
ArrayLists are arrays
CallNotStaticallyChecked — Java
A method invocation on a reference of a type that does not have that method won't compile
ConcreteClassMustOverride — Java
A concrete class needs to implement all abstract methods and override all concrete methods declared in its abstract superclasses
ConcreteClassOnlyImplementClassAbstract — Java
A concrete class only needs to implement those abstract methods it inherits from abstract superclasses
ConcreteClassOnlyImplementDirectAbstract — Java
A concrete class only needs to implement abstract methods declared in its direct supertypes
ConcreteClassOnlyImplementInterfaceAbstract — Java
A concrete class only needs to implement those abstract methods it inherits from interfaces
ImmutableRequiresFinalParameters — Java
Immutable classes need final constructor/method parameters
ImplicitInterfaceImplementation — Java
Java implicitly produces implementations of any methods a class inherits from the interfaces it implements
InterfaceExtendClass — Java
An interface can extend a class
MethodAsField — Java
Each object contains its own special fields for all of its methods
MethodsWithoutClass — Java
Methods can be defined outside a class
MultipleSuperclasses — Java
A class can have multiple superclasses
NestedObjectsImplyNestedClasses — Java
If objects are part of a containment hierarchy, their classes are nested, too
NoFieldInheritance — Java
An object contains only the fields declared in its class
NoMethodInheritance — Java
Subclasses inherit fields but not methods
PrivateFieldsImplyImmutability — Java
A class where all fields are private is immutable
ReferringToRecursiveStructureMakesRecursive — Java
A class referring to a recursive data structure is (indirectly) part of that recursion as well
SuperclassObjectAllocated — Java
When instantiating an object of a subclass, an object of a superclass is also allocated
UnqualifiedNamesMustDiffer — Java
The unqualified names of different classes must be different
UseOfSelfTypeImpliesRecursiveType — Java
If a class has a method that has a local variable, parameter, or return value with the class as its type, the class is a recursive type
ClassDefinesType — JavaScript
The type of an object is equivalent to the type defined by its class definition
PrototypesAreClasses — JavaScript
JavaScript is based on a class-based object model