Encapsulation in Python (OOP)

Pubblicato il: 14 marzo 2020
sul canale di: Easy Learning
47
5

Encapsulation is one of the fundamental concepts in object-oriented programming (OOP). It describes the idea of wrapping data and the methods that work on data within one unit. This puts restrictions on accessing variables and methods directly and can prevent the accidental modification of data. To prevent accidental change, an object’s variable can only be changed by an object’s method. Those types of variables are known as private variable.

A class is an example of encapsulation as it encapsulates all the data that is member functions, variables, etc.


In questa pagina del sito puoi guardare il video online Encapsulation in Python (OOP) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Easy Learning 14 marzo 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 47 volte e gli è piaciuto 5 spettatori. Buona visione!