Category: Object Oriented Programming

  •  Class Attributes

    The properties or variables defined inside a class are called as Attributes. An attribute provides information about the type of data a class contains. There are two types of attributes in Python namely instance attribute and class attribute.  The instance attribute is defined within the constructor of a Python class and is unique to each instance of the class.…

  • Classes and Objects

    Python is an object-oriented programming language, which means that it is based on principle of OOP concept. The entities used within a Python program is an object of one or another class. For instance, numbers, strings, lists, dictionaries, and other similar entities of a program are objects of the corresponding built-in class. In Python, a class…

  • OOP Concepts

    OOP is an abbreviation that stands for Object-oriented programmingparadigm. It is defined as a programming model that uses the concept of objectswhich refers to real-world entities with state and behavior. This chapter helps you become an expert in using object-oriented programming support in Python language. Python is a programming language that supports object-oriented programming. This makes it…