Concepts of Object Oriented Programming (OOPs) in Python⭐
Thread 🧵👇🏾
A class provides a template or a blueprint that describes the structure and behaviour of a set of similar objects.
An object is an instance of a class which can be uniquely identified by its name. Every object has a state which is given by the values of its attributes at a particular time.
Polymorphism is a concept that enables programmers to assign a different meaning or usage to a method in different context.
Inheritance is the capability of one class to derive or inherit the properties from another class.
Data abstraction is the process by which data and functions are defined in such a way that only essential details are revealed and the implementation details are hidden.
Data encapsulation (hiding) is the technique of packing data and functions into single component to hide implementation details of a class from users.
Thanks for reading the thread. Follow me for more!