Archived

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

opinion on abstract classes

This topic is 5112 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

You can but then you have to deal with the coupling to the derivitives. You also would have to deal with multiple inheritance woes which are pretty hard to grok. If you provide default implementation you might get unwanted behavior later on. Let compiler catch this. Though, in the end it''s up to you.

Share this post


Link to post
Share on other sites
Implementation code can most certainly be placed in an abstract class in OOP. As long as behavior which users may want to override is in virtual functions, there''s no problem with it. In fact, a few design patterns require this.


"Sneftel is correct, if rather vulgar." --Flarelocke

Share this post


Link to post
Share on other sites