Examveda
Examveda

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: Option D

Solution(By Examveda Team)

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

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept