We break it down to 6 important concepts:
- Object ๐
- Class ๐๏ธ
- Inheritance ๐งฌ
- Encapsulation ๐
- Abstraction ๐ญ
- Polymorphism ๐
Let's take them one-by-one... ๐
- Object ๐
- Class ๐๏ธ
- Inheritance ๐งฌ
- Encapsulation ๐
- Abstraction ๐ญ
- Polymorphism ๐
Let's take them one-by-one... ๐
1๏ธโฃ Object ๐
Just look around, everything you see can be treated as an object.
For instance a Car, Dog, your Laptop are all objects.
An Object can be defined using 2 things:
- Properties: that describe an object
- Behaviour: the functions that an object can perform
...๐
Just look around, everything you see can be treated as an object.
For instance a Car, Dog, your Laptop are all objects.
An Object can be defined using 2 things:
- Properties: that describe an object
- Behaviour: the functions that an object can perform
...๐
For example, a Car is an object that has properties such as color & model, and behaviours such as accelerating, braking & turning.
But, how do we create these objectsโ๐ค
This is where we need to understand Classes!
...๐
But, how do we create these objectsโ๐ค
This is where we need to understand Classes!
...๐
At this point if Abstraction and Encapsulation confuse you! ๐
Abstraction conceals the implementation details, but doesn't hide the data itself.
On the other hand, Encapsulation hides the data and restricts unwanted use from external sources.
Cheers! ๐ฅ
Abstraction conceals the implementation details, but doesn't hide the data itself.
On the other hand, Encapsulation hides the data and restricts unwanted use from external sources.
Cheers! ๐ฅ
That's a wrap!
If you interested in:
- Python ๐
- Data Science ๐
- Machine Learning ๐ค
- Maths for ML ๐งฎ
- MLOps ๐
- CV/NLP ๐ฃ
- LLMs ๐ง
I'm sharing daily content over here, follow me โ @akshay_pachaar if you haven't already!
Newletter: mlspring.beehiiv.com
Cheers! ๐ฅ
If you interested in:
- Python ๐
- Data Science ๐
- Machine Learning ๐ค
- Maths for ML ๐งฎ
- MLOps ๐
- CV/NLP ๐ฃ
- LLMs ๐ง
I'm sharing daily content over here, follow me โ @akshay_pachaar if you haven't already!
Newletter: mlspring.beehiiv.com
Cheers! ๐ฅ
Loading suggestions...