Archived

This topic is now archived and is closed to further replies.

Namespace or Nested Class?

This topic is 5573 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone! Here''s a design question for you: I have a heirarchy of classes that manage and display a textbox in my current project. The main class in called Console, and under it are Animation (with subclasses ScrollLine and DrawLine) and Font. Now, I could simply put all of these smaller classes inside Console in the form of nested classes. Or, I could create a namespace and put them all inside of that. Outside of this system, only Console is used. What does one do in a situation like this? When one has something that looks like a namespace, but has a central class that encompasses the namespace? I thought nested classes where bad design.... -Solstice deninet.com aeris.deninet.com "...I was given three choices, the earth, the stars, or..."

Share this post


Link to post
Share on other sites