Object Oriented Programming(OOP)
Python: Inheritance
NOTES If no base class is defined for a class, then it is a subclass of “object“. So, not defining base class is equivalent to – class MyClass(object) NOTES If a method implementation in the base class serves our purpose, and is sufficient for our requirement, then we do not need to reimplement it in … Read more
Python: Class and Object
An object in Python(and in general OOP) is a collection of data, and the behavior associated with the different aspects of the object. Object-Oriented Programming(OOP) refers to, objects being the primary focus while programming and modeling all real-world entities as objects. So when we analyze a problem, we need to identify 2 things- Class is … Read more