Declare Class Members


SUBMITTED BY: rahulranjanmca

DATE: Dec. 30, 2015, 9:40 p.m.

FORMAT: HTML

SIZE: 307 Bytes

HITS: 32299

  1. Declare Class Members
  2. Because method and variable members are usually given access control in exactly
  3. the same way, we'll cover both in this section.
  4. Whereas a class can use just two of the four access control levels (default or public), members can use all four:
  5. public
  6. protected
  7. default
  8. private

comments powered by Disqus