Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

inheritance in Python

from Chef import Chef

class ChineseChef(Chef):

	def make_salad():
		print("Chinese chef makes a salad")
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #inheritance #Python
ADD COMMENT
Topic
Name
1+9 =