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
Why is node js better than php?
What is pdo classes?
Tell me how can we display information of a variable and readable by human with php?
Is key exist in array php?
How to initiate a session in php?
How can we determine whether a variable is set?
What are the different errors in php?
Write a program to swap two numbers using php.
Is false empty php?
Tell me how can you pass a variable by reference?
Explain the differences between get and post methods?
how to detect a mobile device using php
Php being an open source is there any support available to it?
How to reset/destroy a cookie?
Do you know what does mvc stand for and what does each component do?