By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,529 Members | 864 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,529 IT Pros & Developers. It's quick & easy.

best method of designing in c++ ?

P: 9
how do we choice the best methods in designing the classes in c++ ?, especially in inheritance.....,

if you have any tips, please provide me............
or

provide an article regarding this, it will be helpful for many developers....

like

basic design strategies....,
Intermediate design Strategies..... ,
Expert design Strategies..........

this will be a helpful topic.

can any one prepare an article for though topics , please...
Jun 14 '07 #1
Share this Question
Share on Google+
4 Replies


DeMan
100+
P: 1,806
I suspect design methodologies are more based on the objective at hand, than the language you use, however there are some experts here who may beg to differ, and are well worth listening to given their experience in c++
Jun 14 '07 #2

Savage
Expert 100+
P: 1,764
I suspect design methodologies are more based on the objective than the language you use, however there are some experts here who may beg to differ, and are well worth listening to given their experience in c++
Class design methodologies are more based in OOP,but every programme needs first designing not coding.Just imagine this situation:

Imagine
that you own a plot of a land on which you want to build a house. When the builder shows up to begin construction you ask to see the blueprints. What blueprints? he responds, I know what Im doing.I dont need to plan every little detail ahead of time. Two-story house? No problem I did a one-story
house a few months ago Ill just start with that model and work from there.
Suppose that you suspend your disbelief and allow the builder to proceed with the project. A few months later you notice that the plumbing appears to run outside the house instead of inside the walls.When you query the builder about this anomaly he says, Oh. Well, I forgot to leave space in the walls
for the plumbing. I was so excited about this new drywall technology it just slipped my mind. But it works just as well outside, and functionality is the most important thing. Youre starting to have your doubts about his approach, but, against your better judgment, you allow him to continue his work.
When you take your first tour of the completed building, you notice that the kitchen lacks a sink. The builder excuses himself by saying, We were already 2/3 done with the kitchen by the time we realized there wasnt space for the sink. Instead of starting over we just added on a separate sink room next door.
It works, right?


Savage
Jun 14 '07 #3

Expert 10K+
P: 11,448
*ahem* you forgot the foundation *cough* ;-)

kind regards,

Jos
Jun 14 '07 #4

Savage
Expert 100+
P: 1,764
*ahem* you forgot the foundation *cough* ;-)

kind regards,

Jos
For the story?

Savage
Jun 14 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.