Sunday, June 29, 2008

Private, Protected, and Public Fields

Reading
Read pages 26 through the bottom of page 28. Undestand the picture and its associated description on page 27.

Code

Add the public/private key words to your animal class in the Claass project as you see on page 27. Then try to access the fields of your animal class from your Main function.

No comments: