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

List some features of php that are deprecated in php

0 Answers  


How to assigning a new character in a string?

0 Answers  


How to submit form without a submit button.

0 Answers  


What is curl php?

0 Answers  


What do you mean by design patterns (php) ?

1 Answers   NIIT,






How can we know the number of days between two given dates using PHP? How can we know the number of days between two given dates using MySQL?

6 Answers  


What is php and why we use it?

0 Answers  


What is cURL in PHP?

0 Answers  


Write down the code for save an uploaded file in php.

0 Answers  


What is a php object?

0 Answers  


How to open a file for writing?

0 Answers  


What is php ci?

0 Answers  


Categories