Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eb3f264

Browse files
authored
Create Reference_variable_2.py
1 parent a03896a commit eb3f264

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎docs/OOPS/Reference_variable_2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'''
2+
Just like a balloon without a ribbon, an object without a reference variable cannot be used later.
3+
'''
4+
class Mobile:
5+
def __init__(self, price, brand):
6+
self.price = price
7+
self.brand = brand
8+
9+
Mobile(1000, "Apple")
10+
#After the above line the Mobile
11+
# object created is lost and unusable

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /