Skip to content

Instantly share code, notes, and snippets.

@uncoded-ro
Created January 10, 2020 05:53
Show Gist options
  • Save uncoded-ro/78e60d4303f0ac8fa8290a33ec52b86a to your computer and use it in GitHub Desktop.
Save uncoded-ro/78e60d4303f0ac8fa8290a33ec52b86a to your computer and use it in GitHub Desktop.
class Student(Persoana):
"""Clasa Student"""
def __init__(self, nume, varsta, facultate, an):
super().__init__(nume, varsta)
self.facultate = facultate
self.an = an
def __str__(self):
return "{0}, {1}, {2}".format(super().__str__(), self.facultate, self.an)
def se_prezinta(self):
super().se_prezinta()
print("Sunt student la facultatea {} in anul {}".format(self.facultate, self.an))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment