back soft

مطالب مرتبط با «how to restrict folder creation» در back soft | نویسنده: استخدام کار

How restrict creation of objects of one class to instances of another in Python?

Vote count: 0 I have encountered a conundrum. I think I should know how to solve this — I even wrote a Python book — but I can't figure it out. It seems like what I am struggling with should be addressed by a design patte that is a variation on the factory theme, but I can't recall one. (At the end of this writeup I suggest a technical solution, but it seems an implausible one.) I hope you find this discussion interesting in its own right, but I look forward to hearing some suggestions for solutions to my problem. Given classes, A, B, C, and D, I want to limit creation of B instances to methods of A, C instances to methods of B, and D instances to methods of C — in other words A instances ar...

ادامه مطلب

برچسب‌های مرتبط

how to restrict object creation in java | how to restrict object creation in c# | how to restrict object creation in heap c++ | how to restrict folder creation | how to restrict object creation in net