Jump to content
  • Advertisement
Sign in to follow this  
luasitdown

class design

This topic is 4887 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

when I need add some function to a class. Better way is creating some new class,connect by inheritance or composition. This way every class is small and clarity and plain. it is base concept about desin of module. but abstract interface especially multiple inheritance tend to combine some class into a class. and provide some interface to outside.(like class renderable class movable class scriptable) so it is antinomy. How should I do?

Share this post


Link to post
Share on other sites
Advertisement
It is difficult for me to understand your post. Let me see if I have the question correct.

Your are asking:

Which is the best way to design a class? Through Inheritance and Composition, or through abstract Interface classes.

Is that the question?

Sorry if my question is more confusing than yours.



Share this post


Link to post
Share on other sites
Quote:
Original post by HAM
It is difficult for me to understand your post. Let me see if I have the question correct.

Your are asking:

Which is the best way to design a class? Through Inheritance and Composition, or through abstract Interface classes.

Is that the question?

Sorry if my question is more confusing than yours.


I mean Inheritance and Composition split thing to some class.and every class is clarity.

and abstract Interface(multiple inheritance) make many thing to a class.and class is big and complex.

so it is antinomy.

How to use the conflict design.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!