Python tutorial

Can we create any number of reference variables for an object?

Yes, An object in the memory can be pointed by any number of reference variables as shown in the below example. In the above example, you can see we are creating the reference variable “s_1” that contains the address(memory location) of an object of the “Student” class. We are now assigning a value of s_1 …

Can we create any number of reference variables for an object? Read More »