• Advertisement


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

Breaking down a problem into classes

This topic is 5982 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 all, I am having a major problem, I have gone through the Sams C++ book and I am cool with all the syntax. However I have come to write a very basic program and I cannot think of how to break the areas down into classes at all. It is like I have a mental block and no matter how much code I look at or how many times I re-read the book I still cannot hear a click sound. What I have thought is, a class breakdown of a bag of cement would be something like: - class Cement { public: int sand(int); int Water(int); int cementmix(int); int bag; Its then thinking about the functions that I just go blank and cannot think what to put. Anyhelp would be great. Sprite

Share this post

Link to post
Share on other sites

  • Advertisement