/*
As per the single responsibility principle
1. A class should have only one reason to change
2. Which means, every module or class should have responsibility over a single part of the functionality provided by the software,
and that responsibility should be entirely encapsulated by the class.
*/
using System;
namespace SRPDemo
{
interface IUser
bool Login(string username, string password);
bool Register(string username, string password, string email);
}
interface ILogger
void LogError(string error);
interface IEmail
bool SendEmail(string emailContent);
public class Program
public static void Main(string[] args)
Console.WriteLine("SOLID SRP 2");