Single Choice Not Set

QWhich feature allows us to call more than one method or function of the class in single instruction?

ID: #2590 Object Oriented Concept of PHP 1,112 views
Question Info
#2590Q ID
Not SetDifficulty
Object Oriented Concept of PHPTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Typecasting
  • B Method Including
  • C Method adding
  • D Method chaining
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.