class CLanguage() :
def __init__(self,name,site):
self.name = name
self.site = site
def say(self,catalog):
self.catalog = catalog
class son(CLanguage):
#inherit name , site from father class
def __init__(self,name,site,person,web):
#inherit objects from father class
super().__init__(name,site)
#Creating new objects for this class
self.person = person
self.web = web
def number(self,click):
self.click = click
"""class games:
def __init__(self,gname,company,type):
super().__init__(person,web)
self.gname = gname
self.company = company
self.type = type"""
#set value
son2 = son("kewang","kewang.com","yuhan","yuhan.com")
print(son2.name,son2.site,son2.person,son2.web)
#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: