Reference no: EM134046468
Assignment:
Write a python code that include the following exercises:
Exercise 1: Implement a Python class with attributes and methods for a simple entity (e.g., a "Person" class). Instantiate objects of this class and perform operations. Use Visual Studio code to run and test the final version of your exercise.
Exercise 2: Implement a class with private attributes and use getter and setter methods to securely access and modify the data.
Exercise 3: Implement a base class (e.g., "Shape") and derived classes (e.g., "Circle" and "Rectangle") to demonstrate inheritance. Apply polymorphism to calculate areas and perimeters.
Exercise 4: Research and implement a presentation on various OOP design patterns, including Singleton, Factory, Observer, and Decorator.
Exercise 5: Design and implement a practical application using OOP principles, such as a library management system or a simple game.