✏️ Explanatory Question

What is difference between new & construct method

👁 138 Views
📘 Detailed Answer
💡

Answer with Explanation

What is difference between new & construct method

new(): used to create a memory to the object.

Construct(): You should create a static construct method for each class. The method should return an instance of the class.