Object Oriented Design Tips II

Here we will look at more tips that will help you improve your object oriented design skills:
  • Class with just get-set methods points to missed delegation
  • Replace an array of structures with an array of objects
  • Delegate work to helper class
  • Multi-dimensional arrays point to incomplete class identification
  • Multiple nested loops point to incomplete delegation
  • Class with very large numbers of methods points to incomplete class identification
  • Don't go overboard with inheritance
  • Prefer delegation to inheritance
  • Don't scatter the abstraction
  • Consider group of objects to split work amongst team members
  • Use nested classes for lightweight helper classes
  • Use templates to improve type safety and performance
  • Divide your code into framework and application parts

View Entire Paper | Previous Page | White Papers Search

If you found this page useful, bookmark and share it on:

 
Embedded Star Newsletter
Don't have time to visit Embedded Star everyday? Then sign up for our free newsletter. We'll send you an email when we have something to share with you. Your email address will be kept confidential and we will not share, sell, or rent it to anyone. You can unsubscribe at any time by clicking a link in the email.

Enter your email address to sign up for our free newsletter:   

If you are familiar with RSS feeds, you can also sign up for our free blog feed. Our RSS feed is updated in real-time while our newsletter is updated daily.