Hi all,
I'm trying to implement for methods for eac Model object in my project. get_all() , get_by_id(),add(),remove() and maybe others. I need to use them by each object . When I declare an object automatically can call one of those methods. The problem , I don't want to duplicate the code of the four methods in each class . Is there a way to write them once, and link them to each object. I heared about instance methods in python. How can use this. Please a help Thanks ...