Python Tutorial 24 - Encapsulation in Python

preview_player
Показать описание
Topic : Encapsulation in Python

#########################
Udemy Courses:
#########################

Manual Testing+Agile with Jira Tool
************************************

Selenium with Java+Cucumber
********************************

Selenium with Python & PyTest
********************************

Selenium with python using Robot framework
****************************************

API Testing(Postman, RestAssured & SoapUI)
*****************************************

Web & API Automation using Cypress with Javascript
********************************************

Playwright with Javascript
**************************

Jmeter-Performance Testing
************************

SDET Essencials(Full Stack QA)
*************************

Appium-Mobile Automation Testing
************************************

Java Collections
*****************

Python Programming
*********************

Cucumber BDD Framework
***************************

Protractor with Javascript
***************************

####################################
Youtube Playlists:
####################################

Manual Testing & Agile
***********************

SQL
**********************

linux & Shell Scripting
**********************

Java
**********************

Selenium With Java+Cucumber
********************************

Python
********************************

Selenium With Python,Pytest&Behave
***************************************

Selenium With Python Using Robert Framework
(Web&API Testing)
***********************************************

API Testing (Postman,SoapUi,&Rest Assured)
**********************************************

Mobile App Testing Appium
****************************

Performance Testing Jmeter
*******************************

Maven,Jenkins,Git,Github,CI/CD
*******************************

SQL,DB Testing&ETL,Bigdata
*******************************

JavaScript Based Automation Tools
********************************

Selector Hub Tools
********************

GraphQL
******************

Cypress API Testing
********************

Cypress Web Testing
**********************

Playwright with Javascipt
**************************

#PythonEncapsulation
#EncapsulationConcept
#OOPInPython
#PrivateAttributes
#EncapsulationExample
#DataHiding
#EncapsulationPrinciples
#AccessModifiers
#ProtectedMembers
#EncapsulatedClasses
#PublicVsPrivate
#PythonAttributes
#ClassEncapsulation
#EncapsulationInheritance
#EncapsulationBenefits
#EncapsulationTutorial
#EncapsulationExplained
#EncapsulationBasics
#EncapsulationInPython
#EncapsulationPattern
#EncapsulationUsage
#EncapsulationBestPractices
#EncapsulationAdvantages
#EncapsulationSecurity
#DataEncapsulation
#PrivateVariables
#PythonProperties
#ObjectOrientedPython
#EncapsulationPatterns
#EncapsulationMethods
#EncapsulationDesign
#EncapsulationPatternPython
#EncapsulationIsolation
#EncapsulationAccess
#EncapsulationExamples
#PythonEncapsulation101
#EncapsulationPrinciple
#EncapsulationInOOP
#PythonClassEncapsulation
#PrivateMembersInPython
#EncapsulationTechniques
#EncapsulationBenefitsInPython
#EncapsulationExploration
#PythonProtectedMembers
#EncapsulationSimplified
#EncapsulationDemo
Рекомендации по теме
Комментарии
Автор

class A:
__a=10
def m3(self):
print(self.__a)
c=A()
c.m3()

#10...

atyameswaravinash
Автор

I see the private variables and methods are accessible outside class by using _classname

class Test:
__a=10
def __m1(self):
Test.__a=20
print(self.__a)


t=Test()
t._Test__m1()
print(t._Test__a)
print(Test._Test__a)
print(Test.__dict__)

bmanu
Автор

Excellent content.. Thanks for sharing

sharifmansuri
Автор

Good video but I believe what you wrote as getempid is actually a setter method and should instead be called setempid. Getter methods should just return the current value so it should have been return self.__empid. Not that the name of the method is actually important to the syntax or compiler but I think it is important for convention.

sfruizmiranda
Автор

Please arrange the video in serial order. Few videos in the list are uploaded without order.

anujagarwal
Автор

Hello sir

what is the reason behind, declaring __ for private variable/method

sathishyerraguntla
Автор

Thank you sir. I have a question. How can we use more than one file for one program in Jupyter? like importing functions from another file. Putting classes and function in one file and function calls in another file.

DrIlyas-sqpz