diff --git a/guide/english/python/class/index.md b/guide/english/python/class/index.md index 52104ac293..70108644b9 100644 --- a/guide/english/python/class/index.md +++ b/guide/english/python/class/index.md @@ -98,5 +98,18 @@ x.__privatenum # gives following error : 'Foo' object has no attribute '__priva ``` +## Simple class and Object Implementation +```python +class Friend: + def __init__(self,first,last,state): + self.fname = first + self.lname = last + self.state = state + self.email = first+"."+state+"@nith.com" + def show(self): + return '{} {} {} {}'.format(self.fname,self.lname,self.state,self.email) +fr1 = Friend("Nilesh","Bharti","Bihar") +fr1.show() +```