01.12.2014 Views

here in PDF - Parasol Laboratory, Department of Computer Science ...

here in PDF - Parasol Laboratory, Department of Computer Science ...

here in PDF - Parasol Laboratory, Department of Computer Science ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CPSC 211 Data Structures & Implementations (c) Texas A&M University [ 23 ]<br />

Public vs. Private (cont’d)<br />

Instance variables should be accessible only <strong>in</strong>directly<br />

via public ”get” and ”set” methods. Ex:<br />

getAgeInYears()<br />

Group together all the private variables/methods, and<br />

all the public ones when you format your program.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!