0

what is an Instance in python??

please explain in simple words with an example...

20th Aug 2016, 6:37 AM
Ashish Rameshan
1 Resposta
0
Not unlike the ambiguity between "class" and "type", "instance" is synonymous to "object". Think of it this way: objects are instances of types. So, "42 is an instance of the type int" is equivalent to "42 is an int object".
27th Aug 2016, 6:06 PM
Eduard Hirsch
Eduard Hirsch - avatar