1. Object-Oriented Programming (OOP) Lecture No. 28 2. Problem Statement • Develop a function that can draw different types of geometric shapes from an array 3. Shape Hierarchy…