DigestCPP

Lets Understand With Example

  • Home
  • Design Principal
  • Design Patterns
  • C++ 11 Features
  • C++11 Multithreading
  • Contact Us

Single Responsibility Principle

Single Responsibility Principle: It defines that each and every class or module should have single responsibility.
In other word we can say that every object should have single responsibility and there is only one reason to change it.

Example:

class car, It should contain only relevant function in it. like start and stop.

Primary Sidebar

DigestCPP © 2022. All rights reserved from 2019.

    Contact Us   Disclaimer