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 difference between php and wordpress?

0 Answers  


What is a php certification?

0 Answers  


What are the differences between PHP 3 and PHP 4 and PHP 5?

2 Answers  


How can we submit a form without a submit button?

5 Answers   CTS,


Explain about the connective abilities of the PHP?

0 Answers  






How can you associate a variable with a session?

0 Answers  


What is the use of nl2br() in php?

0 Answers  


why we use @symbol before the variable

5 Answers   HCL, Numark,


How to count all the lines of code in a directory and sub folder?

0 Answers  


Extract url from this string? It should be flexible for all strings, not for this string only. "yahoo.comyahoo.co.inhotmail.org"

1 Answers   A1 Technology,


Is polymorphism inherited?

0 Answers  


How can we increase the execution time of a PHP script?

12 Answers   CyberBeoz, Photon, XTX,


Categories