Object Oriented Programming (OOP) is a method of structuring a program by clustering common properties and behavior into individual objects. OOP supports code …