KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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".
Tags (comma-separated)
Save Edits
Cancel