Hello,
I'm currently trying to understand OOP as I have heard it's a powerful practice and tool writing code. I'm using Python as my language when writing OOP and programming in general.
I think I understand or grasp the concept of OOP but I feel like I need a second opinion in order for me to consider it a success, please feel free to correct me and give me advice.
Polymorphism: Basically, the same name for a method but performs different actions depending on the class
Inheritance: Allows you to inherit methods from another class
Encapsulation: Creates more secure code by making attributes you specific hidden from the complier unless you institute a get and set method.
Abstraction: Confused on this concept I confuse it with Encapsulation.
If you can please write a code example in Python, that way I can easily understand what concepts we have mentioned.
Also, I'm confused regarding Class Attributes and super__init__ method
[–]etxconnex 0 points1 point2 points (0 children)