Operator Overloading and Exception Handling in Python

Pubblicato il: 07 settembre 2022
sul canale di: Free Lectures of CSE Courses
23
like

Operator Overloading means giving extended meaning beyond their predefined operational meaning. For example operator + is used to add two integers as well as join two strings and merge two lists. It is achievable because ‘+’ operator is overloaded by int class and str class. You might have noticed that the same built-in operator or function shows different behavior for objects of different classes, this is called Operator Overloading.

An exception is an event, which occurs during the execution of a program that disrupts the normal flow of the program's instructions. In general, when a Python script encounters a situation that it cannot cope with, it raises an exception. An exception is a Python object that represents an error.


In questa pagina del sito puoi guardare il video online Operator Overloading and Exception Handling in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Free Lectures of CSE Courses 07 settembre 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 23 volte e gli è piaciuto like spettatori. Buona visione!