This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
pls i need help,i was trying to design a calculator but face the following problem:after creating a class for the KeyPad,a class for Display(i.e screen),and a class for Maths(i.e operators).Couldn't bring them to function one entity.pls tell what to do in order get my calculator working.thanks
You divide a visual app up into MVC. M=model, V=view, and C=control. You have the "V" in the form of the keys and display, and you have part of the "C" in the form of your maths class.
Now you need the "M" bit which takes the numbers from the keys, passes them to the maths class, gets the result back, and passes that to the display. The "M" bit can mean the data you are dealing with or the way the whole things hangs together.