Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

What is the difference between public, protected and private in a class definition?

Public makes a class member available to "everyone", protected makes the class member available to only itself and derived classes, private makes the class member only available to the class itself.
Public and static works only for methods, protected and private - only for class properties.
Wrong list, should be public, available for everyone, and private, available only inside a class.
Public can be accessed by its name, protected - only with using $this, and private can't be accessed from outside the class.
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon