In the above example, a new class Customer has created. This class created with four properties, one constructor and method called printCustomer. In the class, notice that member are using with
this keyword which denoted that it's member access. In the code example class instance are created using
new keyword by passing parameters value. This will run class constructor and assign passed value to the class members. Next, class object is used to call member function of the class called
printCustomer. This member function will display customer first name and last name prefix with "Hello".