1 module services;
2 
3 // Again, see JIOC's docs, or even ASP Core's docs on Dependency Injection.
4 interface IPasswordManager
5 {
6     bool isValidPassword(string pass);
7 }
8 
9 final class PasswordManager : IPasswordManager
10 {
11     override bool isValidPassword(string pass)
12     {
13         return pass == "dman";
14     }
15 }