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

Is age nominal or ordinal?

0 Answers  


How many different types of messages available in php?

0 Answers  


What is polymorphism with example in php?

0 Answers  


How long does a session last in php?

0 Answers  


What is Different between Joomla And Magento?

0 Answers  


What is the difference between runtime exception and compile time exception?

0 Answers  


What is a stored procedure in mysql?

0 Answers  


Which is the Best plateform for PHP?

7 Answers   DLF, Net Solution,


How to support multiple-page forms?

0 Answers  


Is php closing tag necessary?

0 Answers  


What is the integer?

0 Answers  


How to protect special characters in query string?

0 Answers  


Categories