Love the way you write these concepts. However, I have a doubt on your encapsulation part where you say that adding double underscore before a variable name makes it non-accessible from outside. But, I can get that via _className.__variableName
I think they are 2 sides of the same coin; for example i can have a function that can take documents and it will accept any class that is inherited from documents, and i have a new type of document called text, all i have to do is create a new class that inherits documents and implement the method body defined in the document class. Polymorphism is when i have new classes based off interface/abstraction because it is worded differently in some languages.
Easy, handy newsletter, bro!
Thank you 😊
Your content is awesome. Can we get some real time example of each OOPS concepts ?
Hey, thank you!
I will post more content on OOP with real world examples.
It was very easy to understand ✨
Thank you!
What is different between abstraction and polymorephism
Would you mind explaining What is "Self"? It's really confusing I didn't get it yet.
Hi Ashish,
Love the way you write these concepts. However, I have a doubt on your encapsulation part where you say that adding double underscore before a variable name makes it non-accessible from outside. But, I can get that via _className.__variableName
Thank you so much for sharing this. Can you please give some real world implementation of OOPS concepts?
What distinguishes polymorphism through interface from abstraction
I think they are 2 sides of the same coin; for example i can have a function that can take documents and it will accept any class that is inherited from documents, and i have a new type of document called text, all i have to do is create a new class that inherits documents and implement the method body defined in the document class. Polymorphism is when i have new classes based off interface/abstraction because it is worded differently in some languages.