In short: a nested class is just a class written inside another class. It has no link to any outer object. Mark it inner and every instance keeps a hidden reference to the outer object.