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
Can we override magic methods in php?
How to find a substring from a given string in php?
Why php was called as personal home page?
What is the use of strip_tags() method?
What is php in simple words?
Is age nominal or ordinal?
Why is php used?
How the values are ordered in an array?
Explain the syntax for ‘foreach’ loop with example.
How can I load data from a text file into a table?
How do you use bcrypt for hashing passwords in php?
Describe which programming language does php parallel to?
What is multidimensional array in php?
What is variable declaration?
Write down the benefits of php7?