Review of Object Oriented Programming (OOP) Principles
Object-Oriented Programming (OOP) PrinciplesYou only need to review the video, below, if need a refresher on basic classes and methods in java.
Why You Should Avoid Parallel Array StructuresHere are some articles explaining why you should avoid parallel arrays and use classes and objects to encapsulate your date:
Things to consider with parallel arrays:
- Parallel arrays do not scale: If there is a corrupt (or missing) data item, not only is the current item corrupted but potentially all the remaining items on the list could be corrupted or have the wrong indices.
- If you have to add a new field, you have to add a new array.
- Reordeing is more complicated because all the arrays have to be reordered in unison.
Review Questions on Object Oriented Programming and Encapsulation