Q74
Which feature allows us to call more than one method or function of the class in single instruction?
A.
Typecasting
B.
Method Including
C.
Method adding
D.
Method chaining
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
Following is a basic example of method chaining in php: $a = new Order();
$a->CreateOrder()->sendOrderEmail()->createShipment();