Added method to delete objects (#33474)

pull/35497/head
Anaconda 2019-03-03 21:25:52 +05:30 committed by Randell Dawson
parent d78db71f34
commit 76fd0ce297
1 changed files with 5 additions and 0 deletions

View File

@ -96,6 +96,10 @@ x = Foo()
x.__privatenum # gives following error : 'Foo' object has no attribute '__privatenum'
```
#### Delete Objects:
Objectes can be deleted by using ```del``` keyword.
## Simple class and Object Implementation
```python
class Friend:
@ -109,5 +113,6 @@ class Friend:
fr1 = Friend("Nilesh","Bharti","Bihar")
fr1.show()
del fr1
```