Exception Handling in Python

EXCEPTION :      Even when Program is syntactically correct , it may still cause an error when executed. These errors  occurs during run-time , known as EXCEPTION  .An exception is an event ,which occur during the execution of a program and disturbs the standard flow…

Read more

Abstract Class (with example)

Abstract Class in Python:     A class which contain (at least) one or more abstract method  in its definition is called as abstract class .Abstract class is a class which can not be instantiated  which means we cannot create object of that class, such class can o…

Read more

Polymorphism in Python (With Example)

Polymorphism                 Polymorphism refers to having several different forms . It allows programmers to assign different meanings to a variable ,objects or method with the same name .   Polymorphism is one of the important features of OOP. In python Polymorp…

Read more

Types of Inheritance in Python

Inheritance in Python :       Reusing code is an important feature of any programming language(OOP). Reusing Prewritten code has Manifolds merits. It not only saves effort to write a code and cost for production but also enhance its reliability.  So the code writte…

Read more

Python-Classes and objects

Object Orientated programming :          In the previous section , we had discuss about Classes in Python .Definition and Syntax of Class and Object . We saw the __init__() which initializes an object when it is created .Similar to this __init__() method we…

Read more