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 difference between mysql_connect and mysqli_connect?
What is csrf token and why it is required?
Is php object oriented?
Explain about getters and setters in php?
Why php is widely used?
How to create a table to store files?
What is php resource type?
What is framework in php?
What is mysql_fetch_row?
Is it possible to use com component in php?
How to include a file code in different files in php?
Describe PHP error and logging information?
How to Retrieve the Session ID of the Current Session?
What is x+ mode in fopen() used for?
What is a model in php?