Calvin Cutts

Calvin Cutts

  • NA
  • 49
  • 2.3k

Why Make Static Instances of Non-Static Objects?

Feb 3 2020 4:38 AM
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)