Implementing a referral-based loyalty scheme proves beneficial for businesses with infrequent customer transactions or those aiming to expand their customer base.He first addressed customers’ biggest pain point, shipping costs, and subsequently added more benefits to the loyalty program.This design leverages inheritance to create a base class for