what is constructor in a class, how it is work, how it is call?
Answer Posted / sei thu htun
Constructors are functions in a class that are automatically
called when you create a new instance of a class with new. A
function becomes a constructor, when it has the same name as
the class. If a class has no constructor, the constructor of
the base class is being called, if it exists.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is php and sql?
Is php a middleware?
What is empty php?
Which function parses an English textual date or time into Unix timestamp in PHP.
How do I stop a php script?
Explain how you can update memcached when you make changes to php?
Hi this is amul jani here, i complied my graduation in B.com stream.. but as career i looking for PHP language.. to get shape my career. so is that possible to enter in IT world.. for me how much scope of develop my career in this field.. amul jani
How can I prevent sql-injection in php?
How to download and install php for windows?
How to get no of arguments passed to a PHP Function?
How many ways to include variables in double-quoted strings in php?
Tell me when a conditional statement is ended with an endif?
Write a program to find the factorial of a number in php?
Tell me is it possible to remove the html tags from data?
What does explode do in php?