Decorator which checks whether the function is called with the correct type of parameters.
-
Updated
Dec 6, 2024 - Python
Decorator which checks whether the function is called with the correct type of parameters.
This code follows different types of inheritance while using the "setter" and "getter" function. This code collect's the pet's name, age, and type wherein the type of pet is only limited to cat, dog and bird.
Add a description, image, and links to the setter-getter topic page so that developers can more easily learn about it.
To associate your repository with the setter-getter topic, visit your repo's landing page and select "manage topics."