TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Morgan Hein
NA
1
0
Dynamically creating objects
Apr 24 2008 8:03 PM
I know this is something that is common, but I just can't find a suitable answer anywhere on the internet. The keywords that I think pertain to my problem are not correct, so I can't figure out what to search for! Even someone linking me to a page about this would be helpful!
Let's say my program takes a text file (a story) as input, and I want to create an instance of the custom class "Person" for every person named in the text file. How do I do this? How can I dynamically create the objects, without knowing what the names are beforehand?
How can I later call those objects and their functions/variables w/o knowing the name of the object(s)?
Reply
Answers (
1
)
how to lock dir from access by another process
Treeview control in windows forms