Key Points

  • Structures can help make programs less complicated, easier to understand, and easier to maintain.

  • Whenever you consider using a structure, consider whether a class would work better.

  • Pointers are error-prone. Protect yourself by using access routines or classes and defensive-programming practices.

  • Avoid global variables, not just because they're dangerous, but because you can replace them with something better.

  • If you can't avoid global variables, work with them through access routines. Access routines give you everything that global variables give you, and more.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.85.221