You want to create a new instance of Student with a pointer. The pointer points to a memory address when you create the first object. When you shallow copy it, it also copies the memory address of the first student.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You want to create a new instance of Student with a pointer. The pointer points to a memory address when you create the first object. When you shallow copy it, it also copies the memory address of the first student.