Vidyalelo
PHP · Q74

Object Oriented Concept

Programming · PHP · question 74

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
Answer

Answer: Option D

Solution

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