Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What are the differences between public, private, protected,
static, transient, final and volatile?

Answers were Sorted based on User's Feedback



What are the differences between public, private, protected, static, transient, final and volatile?..

Answer / nikunj

Public : access anyware in script
Protected: access only same class and access inherited class
Private: access only in same class
Final: restrict overriding with child class

Is This Answer Correct ?    59 Yes 3 No

What are the differences between public, private, protected, static, transient, final and volatile?..

Answer / naresh

in object by default all variables are presistent. so some
time we want to avoid that variables means we use transient
for that variable.

Is This Answer Correct ?    5 Yes 8 No

What are the differences between public, private, protected, static, transient, final and volatile?..

Answer / bharanikumar

can u plz give me more informa for protected

Is This Answer Correct ?    2 Yes 11 No

Post New Answer



More PHP Interview Questions

What is a path Traversal?

0 Answers  


What is the use of isset() in php?

0 Answers  


What is use of header() function in php?

0 Answers  


What is csrf cookie?

0 Answers  


What is the current stable version of php?

0 Answers  






Does php class need constructor?

0 Answers  


hi here one small project given to me in an software company during interview. one page that would count down till 9pm (today means every day before 9pm it would count down to zero) this means there will show how many mins. sec. and hours are left till 9pm so it would be like 1 hr 20 mins 23 sec. then it up count down every sec and then show 1hr 20mins 22sec left till 9pm once the count down reaches zero it would show a flesh player video will autostart. the flash player will be from http://www.longtailvideo.com/players/jw-flv-player/ (the player is embed into the page.) that same page will track to see if they have already seen the video using php sessions then if they go back to that page it would redirect them to a new page saying that they have already wathed the video.

1 Answers  


How can you parse files that were not ending with .php by using Apache?

1 Answers  


Tell me how to initiate a session in php?

0 Answers  


How many keywords are there in php?

0 Answers  


Tell me how can we define a variable accessible in functions of a php script?

0 Answers  


Tell me how can we check the value of a given variable is alphanumeric?

0 Answers  






Categories