class CLanguage() :
def __init__(self,name,site):
self.name = name
self.site = site
def say(self):
print("Wrong")
class son(CLanguage):
#inherit name , site from father class
#Try def sai(self):
def say(self):
print("ok")
def number(self,click):
self.click = click
#set value
son2 = son("kewang","dsd")
son2.say()
#inherit another method from father class-Auto
"""son2.say(32)
print(son2.catalog)
p=son("Ke Wang","web")
print(p.person,p.web)
p.number(45)
print(p.click)
clang = CLanguage("yuhan","yuhan.com")
print(clang.name)
print(clang.site)
clang.say(34)
print(clang.catalog)"""
To embed this project on your website, copy the following code and paste it into your website's HTML: