OOPs is a vast topic that needs to be covered at the intermediate level. In case of Python programming, however, we will cover some key concepts in this chapter.
- Class: Class is considered as a blueprint for object creation. It can be understood as a factory to produce objects. It provides a template for creating an object and specifying its behavior through means of methods and state through means of variable instance name.
- Objects: They can be considered as an instance of a class. An object can have state and behavior or attributes. The objects basically bundles a set of related states and behaviors, for example, a dog has state (name) and behavior (barking).
- Inheritance: Inheritance is a feature supported by many programming ...