How to implement a class named dragonball. This class must have an attribute named ballcount (which starts from 0) and a method ifoundaball. When ifoundaball is called, ballcount is increased by one. If the value of ballcount is equal to seven, then the message you can ask your wish is printed, and ballcount is reset to 0. How would you implement this class?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More PHP Interview Questions

What is local variable in php?

0 Answers  


How can we get the browser properties using PHP?

4 Answers   Google, Pollux Softech,


Write syntax to open a file in php?

0 Answers  


Explain php split() function.

0 Answers  


Describe PHP error and logging information?

0 Answers  






Is array function in php?

0 Answers  


explain in brief type juggling in php?

1 Answers  


What and How possible injection in PHP and mysql?

3 Answers   RedAlkemi,


What are default session time and path?

0 Answers  


Explain the advantages of using PHP?

0 Answers  


What is the function of trim?

0 Answers  


What u mean by query?

0 Answers  


Categories