Lilou Laure wrote:if the parent had two member fields in it, then even the child class object will have two of those fields created for itself
Lilou Laure wrote:its not the kind of object that is created using the new operator, right ?
Lilou Laure wrote:Is it true that when a subclass instance is created, an instance of the parent is also created ? if yes, can i also know how all this actually works then.
The form super.Identifier refers to the field named Identifier of the current object, but with the current object viewed as an instance of the superclass of the current class.
Daniel Cox wrote:However, that subclass instance can also be seen as an instance of the superclass.