Created
August 25, 2020 21:45
-
-
Save tamert/3e3e95282ae0972319803d28e8d7e6ac to your computer and use it in GitHub Desktop.
katılım
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Content: | |
def __init__(self, title, body): | |
self.title = title | |
self.body = body | |
def show(self): | |
return "baslik: %s icerik: %s" % (self.title, self.body) | |
class Page(Content): | |
def __init__(self, title, body, date): | |
super().__init__(title, body) | |
self.date = date | |
def show(self): | |
return "%s tarih: %s" % (super().show(), self.date) | |
pass | |
news = Page("datca", "gercekten guzel bir sehir","2020-02-02") | |
print(news.show()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment