tag:blogger.com,1999:blog-6166061314683898484.post7813426005976672297..comments2024-03-14T09:03:41.830+05:30Comments on Software Development: single responsibility principleUnknownnoreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6166061314683898484.post-64694043054536475762018-08-15T15:50:09.994+05:302018-08-15T15:50:09.994+05:30C++ being Object Oriented Programming language we ...C++ being Object Oriented Programming language we can implemement the SRP in the same way by creating individual classes for each responsibility.Ranganathahttps://www.blogger.com/profile/07522088608809052341noreply@blogger.comtag:blogger.com,1999:blog-6166061314683898484.post-47754284696442832422018-08-13T13:10:05.938+05:302018-08-13T13:10:05.938+05:30how does this work in c++how does this work in c++Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6166061314683898484.post-33508243733132342532016-07-19T17:27:21.858+05:302016-07-19T17:27:21.858+05:30Yes, that is one the option.
You can call the new...Yes, that is one the option.<br /><br />You can call the new class as EmailNotificaitonManager.<br />This EmailNotificationManager can compose objects of different responsibility. i.e., one for loading the content to be sent, one for formatting the content and one for sending the actual email out.<br />Ranganathahttps://www.blogger.com/profile/07522088608809052341noreply@blogger.comtag:blogger.com,1999:blog-6166061314683898484.post-58254722509856207192016-07-18T14:33:27.824+05:302016-07-18T14:33:27.824+05:30And how to comibe all these classes? Create a new ...And how to comibe all these classes? Create a new one? Like: SendEmailManager? To get the customer object, then format email content ant then everything pass to mail sender?ShadoVwhttps://www.blogger.com/profile/03968964332593584964noreply@blogger.com