Sail E0 Webinar
Question
Which feature allows us to call more than one method or function of the class in single instruction?
Options:
A .  Typecasting
B .  Method Including
C .  Method adding
D .  Method chaining
Answer: Option D


Following is a basic example of method chaining in php: $a = new Order();
$a->CreateOrder()->sendOrderEmail()->createShipment();



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Latest Videos

Latest Test Papers