In one of my project, we had a requirement where in different users would extend the class for adding say fields. Along with this, as we were follo…