Skip to content

Commit

Permalink
Classes and object
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshlinux committed Apr 30, 2018
1 parent 1b0d6cb commit 770dd06
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions classes/classDemo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class student():
def read_data(self,name,fatherName,stream):
name = self.name;
fatherName = self.fatherName
stream = self.stream

def show_data(self):
print("Student Name ",self.name)
print("father Name ",self.fatherName)
print("Stream Name ",self.stream)

student s;
s.read_data('rakesh','jagdish','computer')
s.show_data()

0 comments on commit 770dd06

Please sign in to comment.