About this exercise Instantiation - can somebody explain?
“Above, we created an object by adding parentheses to the name of the class. We then assigned that new instance to the variable
cool_instance for safe-keeping.”
If we create an object without assigning it to a variable (just adding parentheses to a class name), is it not safe enough? Safe from what? What are “the dangers”?
Thank you in advance