2
Answers

Why Make Static Instances of Non-Static Objects?

Calvin Cutts

Calvin Cutts

5y
501
1
Hi, I'm new to programming and was wondering if someone could explain why someone would ever make a static instance of a non-static object. What purposes could that serve?
 
Basically I'm trying to understand the declaration of the ShoppingCartModel object at the top of this image:
 
 
 
Thanks 
Answers (2)