10 Comments
May 23Liked by Ashish Pratap Singh

Easy, handy newsletter, bro!

Expand full comment
author

Thank you 😊

Expand full comment
May 10Liked by Ashish Pratap Singh

Your content is awesome. Can we get some real time example of each OOPS concepts ?

Expand full comment
author

Hey, thank you!

I will post more content on OOP with real world examples.

Expand full comment
May 1Liked by Ashish Pratap Singh

It was very easy to understand ✨

Expand full comment
author

Thank you!

Expand full comment

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

Expand full comment

Thank you so much for sharing this. Can you please give some real world implementation of OOPS concepts?

Expand full comment

What distinguishes polymorphism through interface from abstraction

Expand full comment

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.

Expand full comment