-
-
Save uncoded-ro/78e60d4303f0ac8fa8290a33ec52b86a to your computer and use it in GitHub Desktop.
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 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