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
Explain $_FILES Superglobal Array?
Does strlen include null?
What is the content of /etc directory?
List some sorting functions in php?
What is php written in?
how to open & closing opening period in fico
Explain me what is the goto statement useful for?
What are html entities?
What is a substring in php?
What is final in php?
What is a stored procedure in mysql?
What is the difference between for and foreach in php?
How to get the http request in php?
What is the use of super-global arrays in php?
Why do we use php?