I am writing this blog as an awareness for the developers to write good quality code. As a human being we all take care of good hygiene, cleanliness, good looks etc etc etc. So that we live longer healthier in a good way. So why do we write code so messed up that the next person … Continue reading Write the RIGHT Code
Tag: OOP
Object Oriented Programming in Python
I present to you the playlist of OOP videos with everything you need to learn about Object Oriented Python programming. Let me know your feedback about this playlist. Contents: Class variable, methods & data member Abstraction Encapsulation/Interface Composition Inheritance/Derivation/Hierarchy MRO Generalization/Specialization Polymorphism Introspection/Reflection Magic Functions Built-in Functions Private/protected attributes. Delegation Metaclasses https://www.youtube.com/playlist?list=PLmIOJy35OTG9Ar0_o1FlVv5OWxc48UTHq
Access Specifiers/ Private-Protected in Python OOP
By default all methods and attributes in a python class are public. That means They can be accessed by the class members and by the module which contains it's import. There is no inbuilt syntax available for private, protected, friend, protected friend attribute in python, but you can do necessary changes to your variables to … Continue reading Access Specifiers/ Private-Protected in Python OOP
Multiple Inheritance.. Beauty of Python
The beauty of python is unlike java it supports multiple inheritance. In python version 2.2 the algorithm was simple enough: a depth-first left-to-right search to obtain the attributes to use with derived class. Unlike other python algorithm that overrides names as they are found, multiple inheritance takes first name that is found. Because of this … Continue reading Multiple Inheritance.. Beauty of Python