February 2017
Beginner
1056 pages
28h 57m
English
A little more than kin, and less than kind.
—WILLIAM SHAKESPEARE, Hamlet
Arrays can be used as instance variables in classes. Methods can have an indexed variable or an entire array as an argument and can return an array. In short, arrays can be used with classes and methods just as other objects can. We begin with a case study that uses an array as an instance variable in a class.
In this case study, we will write a program to generate sales reports for a company’s team of sales associates. The company wants to easily see which associate or associates have the highest sales and to know how the sales of each associate compare to the average.
Since we need to ...
Read now
Unlock full access