SuperclassObjectAllocated
DRAFT

Misconception:

When one instantiates an object of a subclass, two objects get allocated: one for the subclass and one for the superclass.

Incorrect

When instantiating an object of a subclass, an object of a superclass is also allocated

Correct

When instantiating an object of a subclass, just that object is allocated

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.