Question 14
Suppose a job portal has a class Applicant for representing the candidates applying for jobs. Class Applicant has a few mandatory fields (like name, contact number, email) and a large number of optional fields (like experience, passport number, PAN number), which necessitates the designer to write a large number of constructors to instantiate the object of Applicant class (one constructor with only initializing all the mandatory fields and a number of constructors for different numbers and different combinations of optional fields along with all mandatory fields). Which of the following design patterns can be best suited for solving the problem of creating a large number of constructors?
Factory design pattern
Builder design pattern
Adapter design pattern
Facade design pattern