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
Is null function in php?
How we can declare variable in php?
What is variable declaration?
What is the purpose of the php empty function?
What is php oop?
Do you have to initialize variables in php?
What type of comments are supported by PHP.
What is inheritance in php?
What are the methods of array in java?
What are the popular content management systems (cms) in php?
What is mysql_fetch_array?
Is php worth learning in 2019?
What is filter_var?
Write down the code for saving an uploaded file in PHP.
What language is similar to php?