...

/

Challenge: Chaining Methods and Properties

Challenge: Chaining Methods and Properties

Implement functions in a class so that they can be chained to any other function.

We'll cover the following...

Task

Let’s add two methods to represent the register and mail functionalities in the User class. These methods will echo a string as a placeholder for their actual purpose.

The User class is given below. In this task, we’ll do the following: ...