Example:

myVar .setColor(RED) .setStyle(BOLD) 

1 answer 1

This is called a “method chain.”

  • 3
    +1 Subspecies of the chain in which the same class is used is called Method cascading - default locale