private v public.

Results 1 to 2 of 2

Thread: private v public.

  1. #1
    Join Date
    Dec 1969

    Default private v public.

    hello all-<BR><BR>when or why would you declare a function private versus public? i have inherited some code in which the developer has some functions declared as private and some as public.<BR><BR>what&#039;s the difference and when should you use each case? <BR><BR>thank you in advance!

  2. #2
    Join Date
    Dec 1969

    Default RE: private v public.

    You use the keyword public to indicate properties and methods that are visible outside the class. Private indicates variables and procedures that can be seen from within the class.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts