Team3309 / 6CimDrive

Off-season of 2015 season, 6 Cim Drive
0 stars 0 forks source link

Member variable/method access control #6

Open vmagro opened 9 years ago

vmagro commented 9 years ago

As a general rule of thumb, everything other than static variables should always be declared as private. If you need to access or set the value of a class's member variable, you should have getter and setter methods to access/set the value respectively.

Here are some spots where I noticed you either didn't declare an access modifier or used it incorrectly:

vmagro commented 9 years ago

One more thing: the skim method in Drive should also be private, right now it's the default, which means it will be able to be called from any other class in that package.