Nicely explained
Is it correct to use ABC in Django? For example I create a model that I want to be abstract, can I inherit ABC into it so that it becomes impossible to create instances out of it?
great video thank you
Excellent thank you. I was looking for that ;) It is the same as Interface in java. You don't herite from, you have to implement them. But the process is the same. Very usefull
Bro, U shouldn't use "..." for ABC class methods, as I know for ABC U should use "pass", "..." its reserved for Protocols
abstract classes exists in java but python lacks oop sophistication as it has no access modifiers for classes or class attributes or inheritance specifiers as in this case.
Interesting, missed on the fact that the @property notation doesn't cause the function to work like a property in the class that implements the abstract. You actually had to implement the function, but the @property stays there. Wait there is more, they occupy the same name space as the properties themselves, but use entirely different syntax. Fascinating I wonder can I just implement them with the @property notation as they are
Bro get the camera I'm verified
Why do we use Abstract class for?
Hahah , ibanana like iapple
what ide are you using
Isn't iBanana._init_ and the super() call redundant code?
maybe mention that abstractproperty and abstractstaticmethod are deprecated.
I read a lot on Google about abstraction in Python. Most of it stated that the objective is to hide the information and complexity from the user. But I can'r understand and see which part exactly is the "HIDING" part. Can anyone explain this?
First
@EddiKh