No video

How Underscore Changes the Accessibility of Data in Python - Access Modifiers - oop

  Рет қаралды 2,788

2MinutesPy

2MinutesPy

Күн бұрын

#oop #objectorientedprogramming #encapsulation #python #pythonprogramming #accessmodifier
In this video, we will talk about how underscore changes the accessibility of the data. "Access modifier" is the term used to address this.
There are 3 types of access modifiers:
- Public Access Modifier
- Protected Access Modifier
- Private Access Modifier
More 2 Minutes Python Tutorial:
Async/Await in Python: • asyncio in Python - As...
_new_ Vs _init_ in Python: • __new__ VS __init__ in...
What is race condition and how to solve it? • Race Condition and How...
What are these (/ and *) parameters in function? • What are these (/ and ...
How to create a MySQL DB in Python: • Create a MySQL Databas...
Yield Keyword in Python: • Python Yield Keyword??...
Class in Python: • How to Create a Class ...
Decorators in Python: • What are Decorators in...
List comprehension in Python: • How to use list compre...
How to use map() in Python: • How to use map() funct...
reverse() vs. reversed() in Python: • Python's reverse() Vs ...
Why Flask(__name__) is Used When Creating a Flask App? • Why Flask(__name__) is...
What is Global Interpreter Lock in Python? • Global Interpreter Loc...
What is a Lambda Function in Python? • What is a Lambda Funct...
Why __init__.py File is Used in Python Projects: • Why __init__.py File i...
if _name_ == "__main__" in Python: • What if __name__ == '_...
Python's seek() and tell() functions in 2 Minutes: • Understanding Python's...
- Python Threading in 2 Minutes: • Python Threading in 2 ...
- Python's super() function in 2 Minutes: • Python's super() Funct...
- How to Use *args and **kwargs in 2 Minutes: • How to Use *args and *...
- Python's ABC (Abstract Base Class) in 2 Minutes: • Python's ABC (Abstract...
- Python's _init_ Method in 2 Minutes: • Python's __init__ Meth...
Python's _getitem_ Method in 2 Minutes: • Python's __getitem__ M...
Subscribe to / @2minutespy for more such videos.
@2MinutesPy

Пікірлер: 18
@gauraomate6587
@gauraomate6587 2 ай бұрын
These topics are really helpful to understand the concepts clearly. You should post the videos more often.
@2MinutesPy
@2MinutesPy 2 ай бұрын
Thank you, I will
@Hoxle-87
@Hoxle-87 2 ай бұрын
Thank you. Like always, useful yet concise
@2MinutesPy
@2MinutesPy 2 ай бұрын
Glad to hear that!
@Rubalix
@Rubalix 2 ай бұрын
@@2MinutesPyYou really should consider actually making videos, instead of just posing ones made by AI.
@akshaysutar7832
@akshaysutar7832 Ай бұрын
Your videos are simply awesome no drama,no cringe... thank you ❤
@2MinutesPy
@2MinutesPy Ай бұрын
Thank you so much!!
@sachinpal5823
@sachinpal5823 2 ай бұрын
"oh wow...", really got me😅
@compositeboson123
@compositeboson123 2 ай бұрын
about to use it, thanks
@2MinutesPy
@2MinutesPy 2 ай бұрын
Sure
@misbahulhaq77
@misbahulhaq77 2 ай бұрын
very interesting videos❤
@2MinutesPy
@2MinutesPy 2 ай бұрын
You are so kind
@rexsybimatrimawahyu3292
@rexsybimatrimawahyu3292 2 ай бұрын
Can you talk about "@" deal in python class? Or in function? I still dont understand ut to this day
@2MinutesPy
@2MinutesPy 2 ай бұрын
Already published a video on decorators in Python. You can watch it here - kzbin.info/www/bejne/qnymhoV3gquXmpY Usually, when we want to decorate a function, we prefix '@' before the decorator function. For eg., @dataclass class Person: # body
@krzysiekkrzysiek9059
@krzysiekkrzysiek9059 2 ай бұрын
Awesome explanation 👌
@2MinutesPy
@2MinutesPy 2 ай бұрын
Thank you 🙂
@joeruss1834
@joeruss1834 2 ай бұрын
In what instance would one use _protected over public or __private? What is it protected from?
@sachinpal5823
@sachinpal5823 2 ай бұрын
One make Protected attribute to indicate that it should not be used outside the class. It is not mandatory though but it's a sole responsibility of a developer. Protected from being used outside the class but it is not enforced by python, so it's just a convention.
How to Create a Class in Python? 2MinutesPy
2:09
2MinutesPy
Рет қаралды 1,9 М.
Every Python dev falls for this (name mangling)
14:11
mCoding
Рет қаралды 138 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 111 МЛН
How I Did The SELF BENDING Spoon 😱🥄 #shorts
00:19
Wian
Рет қаралды 36 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 12 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 801 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 550 М.
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 404 М.
How To Use List Comprehension In Python
6:41
Taylor's Software
Рет қаралды 7 М.
Python's 5 Worst Features
19:44
Indently
Рет қаралды 106 М.
Modern Python logging
21:32
mCoding
Рет қаралды 178 М.
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
pixegami
Рет қаралды 264 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 148 М.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 267 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 155 М.
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 111 МЛН