Say I have two classes : a provider A and a consumer B.
My question : who should do the error handling, validation etc.?
Example : a Garage class and a Car class.
Should the Garage class tell the Car class : "He Car you are to big to enter my garage door." Or should the Car class say: "This garage door is to small for me to enter."
ddanbe
2,724
Professional Procrastinator
Featured Poster
Recommended Answers
Jump to PostDefine 'provider' and define 'consumer'. What do you mean by 'putting a car in a garage'? That analogy can mean different things. (Maybe just tell us what you're doing.)
All 4 Replies
Rashakil Fol
978
Super Senior Demiposter
Team Colleague
ddanbe
2,724
Professional Procrastinator
Featured Poster
Rashakil Fol
978
Super Senior Demiposter
Team Colleague
ddanbe
2,724
Professional Procrastinator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.