I have a class that has certain fields say a Profile Class. Fields are Name, Designation, Work-place, Phone number etc. Now it might happen that in future we add some field to these classes. One method for sure is to manually add the fields and add the getter and setters for it. But is there a design pattern or way so that we have a provision to add new fields to our java class so that when we create an object we have that field added.
Aucun commentaire:
Enregistrer un commentaire