Polymorphism on Variables of class

Since all references to the base class variable p originate from the perspective of the Packet base class type, the reference p.i refers to the class member Packet::i and is unaware of anything declared in the LinkedPacket class.