Static variable tips

  • Make constants, like PI, static and public
  • If static variables are not constants, keep them private if possible
  • Static variables save space and are easy to use as they keep one copy across multiple objects
  • Leave a Reply