is it bad programming practice or perfectly normal to design a class, in which there is no public member function which can check the status of the objects state? for example what if i implemented it so the object was assumed successfull....until an exception is thrown? is this OK to do or no?
lochnessmonster 0 Junior Poster
Recommended Answers
Jump to PostAbsolutely fine, (IMHO), obviously it depends on your needs, but what about classes that return some kind of evaluation, e.g. a class that calculates the global density from all the objects in a simulation. It knows the materials, object locations and orientations. It has only one public function that returns …
All 3 Replies
StuXYZ 731 Practically a Master Poster
Fbody 682 Posting Maven Featured Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
StuXYZ commented: Well thought out post +4
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.