SOLID is a mnemonic proposed by Robert C. Martin. Known in the programming community as Uncle Bob. SOLID…