top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Visibility of the property or method?

+1 vote
280 views
Visibility of the property or method?
posted Aug 16, 2014 by Devyani

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The visibility of a property or method must be defined by prefixing the declaration with the keywords public, protected or private.
Class members declared public can be accessed everywhere.
Members declared protected can be accessed only within the class itself and by inherited and parent classes.
Members declared as private may only be accessed by the class that defines the member.

answer Aug 18, 2014 by Deepak Negi
Similar Questions
+1 vote

I have some problem
I have store the data in the database without encrypt but i am view the data encrypt method after 1 day and doesn't know the details.

I am using php and mysql, Could the experts please comment on this, and offer some advice?

...