Jump to content
  • Advertisement

Archived

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

Solstice

Namespace or Nested Class?

This topic is 5819 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
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!