I create the person object like this.
Person person=new Person("Sam","Lewis")
It has properties like this.
person.Dob
person.Address
But now I want to add properties like this and set the values at the run time after creating the object.
person.Age
person.Sex
How can I add those extra properties after creating the object. Those property name can be changed time to time. Therefor can't hardcode the "Age" and "Sex".
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…