1 Comment

  1. Sangwan70

    Python Object Oriented programming | python tutorial for beginners

    Object Oriented programming, OOP is a method of structuring a program by bundling related properties and behaviors into individual objects.

    For instance, an object could represent a person with properties like a name, age, and address and behaviors such as walking, talking, breathing, and running.

    Or it could represent an email with properties like a recipient list, subject, and body and behaviors like adding attachments and sending.

    Python has been an object-oriented language since it existed.


    A user-defined prototype for an object that defines a set of attributes that characterize any object of the class.

    The attributes are data members, class variables and instance variables, and methods, accessed via dot notation.

    Class Variable

    A variable that is shared by all instances of a class. Class variables are defined within a class but outside any of the class’s methods. Class variables are not used as frequently as instance variables are.

    Data Member: 

    A class variable or instance variable that holds data associated with a class and its objects.

    Instance variable

    A variable that is defined inside a method and belongs only to the current instance of a class.


    The transfer of the characteristics of a class to other classes that are derived from it.


    An individual object of a certain class.

    An object obj that belongs to a class Circle, for example, is an instance of the class Circle.


    Define a method in a class by including function definitions within the scope of the class block. There must be a special first argument self in all of method definitions which gets bound to the calling instance. There is usually a special method called __init__ in most classes


    A unique instance of a data structure that’s defined by its class. An object comprises both data members, class variables and instance variables, and methods.

    Operator overloading

    The assignment of more than one function to a particular operator. Because of this, creating and using classes and objects are downright easy.


Submit a Comment

Your email address will not be published. Required fields are marked *